19 lines
589 B
Plaintext
19 lines
589 B
Plaintext
Test importing a JWK RSA-OAEP private key with SHA-1
|
|
|
|
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
|
|
|
|
|
Importing a key...
|
|
PASS privateKey.toString() is '[object CryptoKey]'
|
|
PASS privateKey.type is 'private'
|
|
PASS privateKey.extractable is true
|
|
PASS privateKey.algorithm.name is 'RSA-OAEP'
|
|
PASS privateKey.algorithm.modulusLength is 2048
|
|
PASS bytesToHexString(privateKey.algorithm.publicExponent) is '010001'
|
|
PASS privateKey.algorithm.hash.name is 'SHA-1'
|
|
PASS privateKey.usages is ['decrypt', 'unwrapKey']
|
|
PASS successfullyParsed is true
|
|
|
|
TEST COMPLETE
|
|
|