blob: 188b3bcf1e9d365efaa153c5f8f33bc45a60004d [file] [edit]
Test importing a truncated PKCS8 RSA-OAEP key that triggers bounds check failure
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS crypto.subtle.importKey("pkcs8", truncatedPkcs8Key, {name: "RSA-OAEP", hash: "sha-256"}, extractable, ["decrypt"]) rejected promise with DataError: Data provided to an operation does not meet requirements.
PASS successfullyParsed is true
TEST COMPLETE