chromium/third_party/blink/web_tests/crypto/subtle/rsassa-pkcs1-v1_5/generateKey-failures-expected.txt

Tests generateKey() with bad RSASSA-PKCS1-v1_5 parameters.

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


generateKey() with a modulusLength -30...
error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': RsaHashedKeyGenParams: modulusLength: Outside of numeric range

generateKey() with modulusLength NaN...
error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': RsaHashedKeyGenParams: modulusLength: Is not a number

generateKey() without modulusLength...
error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': RsaHashedKeyGenParams: modulusLength: Missing required property

generateKey() without publicExponent...
error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': RsaHashedKeyGenParams: publicExponent: Missing or not a Uint8Array

generateKey() with publicExponent that is an integer...
error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': RsaHashedKeyGenParams: publicExponent: Missing or not a Uint8Array

generateKey() with publicExponent that is null...
error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': RsaHashedKeyGenParams: publicExponent: Missing or not a Uint8Array

generateKey() with modulusLength that is 10...
error is: OperationError: The modulus length must be a multiple of 8 bits and >= 256 and <= 16384

generateKey() with publicExponent that is 0 bytes long...
error is: OperationError: The "publicExponent" must be either 3 or 65537

generateKey() with invalid hash name...
error is: NotSupportedError: Failed to execute 'generateKey' on 'SubtleCrypto': RsaHashedKeyGenParams: hash: Algorithm: Unrecognized name

generateKey() without hash name...
error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': RsaHashedKeyGenParams: hash: Missing or not an AlgorithmIdentifier
PASS successfullyParsed is true

TEST COMPLETE