rsassa-pkcs1-v1_5-import-jwk-small-key-expected.txt 593 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
A key of size 2048 bits or larger MUST be used with RS256, RS384, RS512 JWK algorithms.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


PASS crypto.subtle.importKey("jwk", asciiToUint8Array(JSON.stringify(publicKeyJSON)), null, extractable, ["sign", "verify"]) threw exception TypeError: Key size is not valid for RS256.
PASS crypto.subtle.importKey("jwk", asciiToUint8Array(JSON.stringify(privateKeyJSON)), null, extractable, ["sign", "verify"]) threw exception TypeError: Key size is not valid for RS512.
PASS successfullyParsed is true

TEST COMPLETE