| Index: LayoutTests/crypto/generateKey-expected.txt
|
| diff --git a/LayoutTests/crypto/generateKey-expected.txt b/LayoutTests/crypto/generateKey-expected.txt
|
| index ca0a1fdffbb4514e420639ac94b0ee87d39ed2fd..63bb5bdd897ba5d0aa74bcca5081bc6586651292 100644
|
| --- a/LayoutTests/crypto/generateKey-expected.txt
|
| +++ b/LayoutTests/crypto/generateKey-expected.txt
|
| @@ -1,3 +1,35 @@
|
| +CONSOLE ERROR: Algorithm: AES-CBC: AesKeyGenParams: length: Missing required property
|
| +CONSOLE ERROR: Algorithm: AES-CBC: AesKeyGenParams: length: Outside of numeric range
|
| +CONSOLE ERROR: Algorithm: AES-CBC: AesKeyGenParams: length: Outside of numeric range
|
| +CONSOLE ERROR: Algorithm: AES-CBC: AesKeyGenParams: length: Outside of numeric range
|
| +CONSOLE ERROR: Algorithm: AES-CTR: AesKeyGenParams: length: Missing required property
|
| +CONSOLE ERROR: Algorithm: AES-CTR: AesKeyGenParams: length: Outside of numeric range
|
| +CONSOLE ERROR: Algorithm: AES-CTR: AesKeyGenParams: length: Outside of numeric range
|
| +CONSOLE ERROR: Algorithm: AES-CTR: AesKeyGenParams: length: Outside of numeric range
|
| +CONSOLE ERROR: Algorithm: AES-KW: AesKeyGenParams: length: Missing required property
|
| +CONSOLE ERROR: Algorithm: AES-KW: AesKeyGenParams: length: Outside of numeric range
|
| +CONSOLE ERROR: Algorithm: AES-KW: AesKeyGenParams: length: Outside of numeric range
|
| +CONSOLE ERROR: Algorithm: AES-KW: AesKeyGenParams: length: Outside of numeric range
|
| +CONSOLE ERROR: Algorithm: HMAC: HmacKeyParams: length: Outside of numeric range
|
| +CONSOLE ERROR: Algorithm: HMAC: HmacKeyParams: hash: Algorithm: Unrecognized algorithm name
|
| +CONSOLE ERROR: Algorithm: HMAC: HmacKeyParams: length: Outside of numeric range
|
| +CONSOLE ERROR: Algorithm: HMAC: HmacKeyParams: length: Is not a number
|
| +CONSOLE ERROR: Algorithm: HMAC: HmacKeyParams: length: Outside of numeric range
|
| +CONSOLE ERROR: Algorithm: HMAC: HmacKeyParams: length: Outside of numeric range
|
| +CONSOLE ERROR: Algorithm: HMAC: HmacKeyParams: length: Is not a number
|
| +CONSOLE ERROR: Algorithm: HMAC: HmacKeyParams: length: Is not a number
|
| +CONSOLE ERROR: Algorithm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Outside of numeric range
|
| +CONSOLE ERROR: Algorithm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Is not a number
|
| +CONSOLE ERROR: Algorithm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Missing required property
|
| +CONSOLE ERROR: Algorithm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Array
|
| +CONSOLE ERROR: Algorithm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Array
|
| +CONSOLE ERROR: Algorithm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Array
|
| +CONSOLE ERROR: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Outside of numeric range
|
| +CONSOLE ERROR: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Is not a number
|
| +CONSOLE ERROR: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Missing required property
|
| +CONSOLE ERROR: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Array
|
| +CONSOLE ERROR: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Array
|
| +CONSOLE ERROR: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Array
|
| Tests crypto.subtle.generateKey.
|
|
|
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
| @@ -6,41 +38,41 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
|
| PASS crypto.subtle.generateKey(aesCbc, extractable, -1) threw exception TypeError: The 3rd argument is neither an array, nor does it have indexed properties..
|
| PASS crypto.subtle.generateKey(aesCbc, extractable, null) threw exception TypeError: The 3rd argument is neither an array, nor does it have indexed properties..
|
| PASS crypto.subtle.generateKey(aesCbc, extractable, ['boo']) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Invalid keyUsages argument.
|
| -PASS crypto.subtle.generateKey({ name: 'aes-cbc' }, extractable, keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: AES-CBC: AesKeyGenParams: length: Missing required property.
|
| -PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: 70000 }, extractable, keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: AES-CBC: AesKeyGenParams: length: Outside of numeric range.
|
| -PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: -3 }, extractable, keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: AES-CBC: AesKeyGenParams: length: Outside of numeric range.
|
| -PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: -Infinity }, extractable, keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: AES-CBC: AesKeyGenParams: length: Outside of numeric range.
|
| -PASS crypto.subtle.generateKey({ name: 'aes-ctr' }, extractable, keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: AES-CTR: AesKeyGenParams: length: Missing required property.
|
| -PASS crypto.subtle.generateKey({ name: 'aes-ctr', length: 70000 }, extractable, keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: AES-CTR: AesKeyGenParams: length: Outside of numeric range.
|
| -PASS crypto.subtle.generateKey({ name: 'aes-ctr', length: -3 }, extractable, keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: AES-CTR: AesKeyGenParams: length: Outside of numeric range.
|
| -PASS crypto.subtle.generateKey({ name: 'aes-ctr', length: -Infinity }, extractable, keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: AES-CTR: AesKeyGenParams: length: Outside of numeric range.
|
| -PASS crypto.subtle.generateKey({ name: 'aes-kw' }, extractable, keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: AES-KW: AesKeyGenParams: length: Missing required property.
|
| -PASS crypto.subtle.generateKey({ name: 'aes-kw', length: 70000 }, extractable, keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: AES-KW: AesKeyGenParams: length: Outside of numeric range.
|
| -PASS crypto.subtle.generateKey({ name: 'aes-kw', length: -3 }, extractable, keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: AES-KW: AesKeyGenParams: length: Outside of numeric range.
|
| -PASS crypto.subtle.generateKey({ name: 'aes-kw', length: -Infinity }, extractable, keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: AES-KW: AesKeyGenParams: length: Outside of numeric range.
|
| -PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: -3}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: HMAC: HmacKeyParams: length: Outside of numeric range.
|
| -PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: ''}, length: 48}, extractable , keyUsages) threw exception NotSupportedError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: HMAC: HmacKeyParams: hash: Algorithm: Unrecognized algorithm name.
|
| -PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: 5000000000}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: HMAC: HmacKeyParams: length: Outside of numeric range.
|
| -PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: NaN}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: HMAC: HmacKeyParams: length: Is not a number.
|
| -PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: Infinity}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: HMAC: HmacKeyParams: length: Outside of numeric range.
|
| -PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: -Infinity}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: HMAC: HmacKeyParams: length: Outside of numeric range.
|
| -PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: crypto}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: HMAC: HmacKeyParams: length: Is not a number.
|
| -PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: undefined}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: HMAC: HmacKeyParams: length: Is not a number.
|
| -PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: '48'}, extractable , keyUsages) did not throw exception.
|
| -PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: null}, extractable , keyUsages) did not throw exception.
|
| -PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: true}, extractable , keyUsages) did not throw exception.
|
| -PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: -30}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Outside of numeric range.
|
| -PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: NaN}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Is not a number.
|
| -PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5'}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Missing required property.
|
| -PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Array.
|
| -PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10, publicExponent: 10}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Array.
|
| -PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10, publicExponent: null}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Array.
|
| -PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: -30}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Outside of numeric range.
|
| -PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: NaN}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Is not a number.
|
| -PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5'}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Missing required property.
|
| -PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Array.
|
| -PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10, publicExponent: 10}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Array.
|
| -PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10, publicExponent: null}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Array.
|
| +PASS: 'crypto.subtle.generateKey({ name: 'aes-cbc' }, extractable, keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({ name: 'aes-cbc', length: 70000 }, extractable, keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({ name: 'aes-cbc', length: -3 }, extractable, keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({ name: 'aes-cbc', length: -Infinity }, extractable, keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({ name: 'aes-ctr' }, extractable, keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({ name: 'aes-ctr', length: 70000 }, extractable, keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({ name: 'aes-ctr', length: -3 }, extractable, keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({ name: 'aes-ctr', length: -Infinity }, extractable, keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({ name: 'aes-kw' }, extractable, keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({ name: 'aes-kw', length: 70000 }, extractable, keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({ name: 'aes-kw', length: -3 }, extractable, keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({ name: 'aes-kw', length: -Infinity }, extractable, keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: -3}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'hmac', hash: {name: ''}, length: 48}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: 5000000000}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: NaN}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: Infinity}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: -Infinity}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: crypto}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: undefined}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: null}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: -30}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: NaN}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5'}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10, publicExponent: 10}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10, publicExponent: null}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: -30}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: NaN}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5'}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10, publicExponent: 10}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10, publicExponent: null}, extractable , keyUsages)' rejected with null
|
| +PASS: 'crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: '48'}, extractable , keyUsages)' accepted with [object Key]
|
| +PASS: 'crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: true}, extractable , keyUsages)' accepted with [object Key]
|
| PASS successfullyParsed is true
|
|
|
| TEST COMPLETE
|
|
|