1 Tests generateKey() with bad RSASSA-PKCS1-v1_5 parameters.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7 generateKey() with a modulusLength -30...
8 error is: TypeError: RsaHashedKeyGenParams: modulusLength: Outside of numeric range
10 generateKey() with modulusLength NaN...
11 error is: TypeError: RsaHashedKeyGenParams: modulusLength: Is not a number
13 generateKey() without modulusLength...
14 error is: TypeError: RsaHashedKeyGenParams: modulusLength: Missing required property
16 generateKey() without publicExponent...
17 error is: TypeError: RsaHashedKeyGenParams: publicExponent: Missing or not a Uint8Array
19 generateKey() with publicExponent that is an integer...
20 error is: TypeError: RsaHashedKeyGenParams: publicExponent: Missing or not a Uint8Array
22 generateKey() with publicExponent that is null...
23 error is: TypeError: RsaHashedKeyGenParams: publicExponent: Missing or not a Uint8Array
25 generateKey() with modulusLength that is 10...
26 error is: OperationError: The modulus length must be a multiple of 8 bits and >= 256 and <= 16384
28 generateKey() with publicExponent that is 0 bytes long...
29 error is: OperationError: The "publicExponent" must be either 3 or 65537
31 generateKey() with invalid hash name...
32 error is: NotSupportedError: RsaHashedKeyGenParams: hash: Algorithm: Unrecognized name
34 generateKey() without hash name...
35 error is: TypeError: RsaHashedKeyGenParams: hash: Missing or not an AlgorithmIdentifier
36 PASS successfullyParsed is true