16 lines
924 B
Plaintext
16 lines
924 B
Plaintext
Test encrypting using RSA-OAEP with malformed parameters
|
|
|
|
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
|
|
|
|
|
PASS crypto.subtle.encrypt({name: "RSA-OAEP", label: true}, key, plainText) rejected promise with TypeError: Type error.
|
|
PASS crypto.subtle.encrypt({name: "RSA-OAEP", label: 1}, key, plainText) rejected promise with TypeError: Type error.
|
|
PASS crypto.subtle.encrypt({name: "RSA-OAEP", label: null}, key, plainText) rejected promise with TypeError: Type error.
|
|
PASS crypto.subtle.encrypt({name: "RSA-OAEP", label: Symbol()}, key, plainText) rejected promise with TypeError: Type error.
|
|
PASS crypto.subtle.encrypt({name: "RSA-OAEP", label: { }}, key, plainText) rejected promise with TypeError: Type error.
|
|
PASS crypto.subtle.encrypt({name: "RSA-OAEP", label: "foo"}, key, plainText) rejected promise with TypeError: Type error.
|
|
PASS successfullyParsed is true
|
|
|
|
TEST COMPLETE
|
|
|