File tree 3 files changed +2745
-3113
lines changed
modules/material-management-browser/test
3 files changed +2745
-3113
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ import {
22
22
isValidCryptoKey ,
23
23
SignatureKey ,
24
24
VerificationKey ,
25
+ AwsEsdkJsCryptoKeyPair ,
26
+ AwsEsdkJsKeyUsage ,
25
27
} from '@aws-crypto/material-management'
26
28
import {
27
29
synchronousRandomValues ,
@@ -970,14 +972,14 @@ async function sigKeys(suite: WebCryptoAlgorithmSuite) {
970
972
971
973
const webCryptoAlgorithm = { name : 'ECDSA' , namedCurve }
972
974
const extractable = false
973
- const usages = [ 'sign' , 'verify' ]
975
+ const usages = [ 'sign' , 'verify' ] as AwsEsdkJsKeyUsage [ ]
974
976
const format = 'raw'
975
977
976
- const { publicKey, privateKey } = await subtle . generateKey (
978
+ const { publicKey, privateKey } = ( await subtle . generateKey (
977
979
webCryptoAlgorithm ,
978
980
extractable ,
979
981
usages
980
- )
982
+ ) ) as AwsEsdkJsCryptoKeyPair
981
983
const publicKeyBytes = await subtle . exportKey ( format , publicKey )
982
984
const compressPoint = SignatureKey . encodeCompressPoint (
983
985
new Uint8Array ( publicKeyBytes ) ,
You can’t perform that action at this time.
0 commit comments