blob: 5e47095228848b3319490a7cfb705f3b2ce4ae1d [file] [log] [blame]
Test importing a JWK RSA-OAEP public key with SHA-512
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Importing a key...
PASS publicKey.toString() is '[object CryptoKey]'
PASS publicKey.type is 'public'
PASS publicKey.extractable is true
PASS publicKey.algorithm.name is 'RSA-OAEP'
PASS publicKey.algorithm.modulusLength is 2048
PASS bytesToHexString(publicKey.algorithm.publicExponent) is '010001'
PASS publicKey.algorithm.hash.name is 'SHA-512'
PASS publicKey.usages is ['encrypt', 'wrapKey']
PASS successfullyParsed is true
TEST COMPLETE