blob: 54b2ea97a351c6f48b2da8842c49977577c7aa87 [file] [log] [blame]
[Worker] Test importing a SPKI RSA key in workers
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Starting worker: resources/rsa-import-spki-key.js
[Worker] Importing a key...
PASS [Worker] crypto.subtle.importKey("spki", spkiKey, {name: "RSA-OAEP", hash: "sha-1"}, extractable, ["decrypt", "unwrapKey"]) rejected promise with SyntaxError: A required parameter was missing or out-of-range.
PASS [Worker] publicKey.toString() is '[object CryptoKey]'
PASS [Worker] publicKey.type is 'public'
PASS [Worker] publicKey.extractable is true
PASS [Worker] publicKey.algorithm.name is 'RSA-OAEP'
PASS [Worker] publicKey.algorithm.modulusLength is 2048
PASS [Worker] bytesToHexString(publicKey.algorithm.publicExponent) is '010001'
PASS [Worker] publicKey.algorithm.hash.name is 'SHA-1'
PASS [Worker] publicKey.usages is ['encrypt', 'wrapKey']
PASS successfullyParsed is true
TEST COMPLETE