| Index: LayoutTests/crypto/encrypt-decrypt-expected.txt
|
| diff --git a/LayoutTests/crypto/encrypt-decrypt-expected.txt b/LayoutTests/crypto/encrypt-decrypt-expected.txt
|
| index e7ac0928012d26db18b55860c1f69bbce0267072..dfe72a4ec4ca7b9e20118e175e67bfea1130f7ba 100644
|
| --- a/LayoutTests/crypto/encrypt-decrypt-expected.txt
|
| +++ b/LayoutTests/crypto/encrypt-decrypt-expected.txt
|
| @@ -1,3 +1,17 @@
|
| +CONSOLE ERROR: Algorithm: AES-CBC: AesCbcParams: iv: Missing or not a ArrayBufferView
|
| +CONSOLE ERROR: Algorithm: AES-CBC: AesCbcParams: iv: Missing or not a ArrayBufferView
|
| +CONSOLE ERROR: Algorithm: AES-CBC: AesCbcParams: iv: Missing or not a ArrayBufferView
|
| +CONSOLE ERROR: Algorithm: AES-CBC: AesCbcParams: iv: Must be 16 bytes
|
| +CONSOLE ERROR: Algorithm: AES-CTR: AesCtrParams: counter: Missing or not a Uint8Array
|
| +CONSOLE ERROR: Algorithm: AES-CTR: AesCtrParams: counter: Missing or not a Uint8Array
|
| +CONSOLE ERROR: Algorithm: AES-CTR: AesCtrParams: length: Missing required property
|
| +CONSOLE ERROR: key.algorithm does not match that of operation
|
| +CONSOLE ERROR: key.algorithm does not match that of operation
|
| +CONSOLE ERROR: Algorithm: AES-CTR: AesCtrParams: length: Outside of numeric range
|
| +CONSOLE ERROR: Algorithm: AES-CTR: AesCtrParams: length: Outside of numeric range
|
| +CONSOLE ERROR: Algorithm: AES-CTR: AesCtrParams: length: Outside of numeric range
|
| +CONSOLE ERROR: key.algorithm does not match that of operation
|
| +CONSOLE ERROR: key.usages does not permit this operation
|
| Tests cypto.subtle.encrypt and crypto.subtle.decrypt
|
|
|
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
| @@ -44,21 +58,21 @@ PASS: Decryption should be [6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb7
|
| PASS: Decryption should be [6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff6] and was
|
| PASS: Decryption should be [6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be6] and was
|
| PASS: Decryption should be [] and was
|
| -PASS crypto.subtle.encrypt({name: 'AES-CBC', iv: null}, keys.aesCbc, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CBC: AesCbcParams: iv: Missing or not a ArrayBufferView.
|
| -PASS crypto.subtle.encrypt({name: 'AES-CBC'}, keys.aesCbc, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CBC: AesCbcParams: iv: Missing or not a ArrayBufferView.
|
| -PASS crypto.subtle.encrypt({name: 'AES-CBC', iv: 3}, keys.aesCbc, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CBC: AesCbcParams: iv: Missing or not a ArrayBufferView.
|
| -PASS crypto.subtle.encrypt({name: 'AES-CBC', iv: new Uint8Array[0]}, keys.aesCbc, data) threw exception TypeError: undefined is not a function.
|
| -PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: null}, keys.aesCtr, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CTR: AesCtrParams: counter: Missing or not a Uint8Array.
|
| -PASS crypto.subtle.encrypt({name: 'AES-CTR'}, keys.aesCtr, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CTR: AesCtrParams: counter: Missing or not a Uint8Array.
|
| -PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(0)}, keys.aesCtr, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CTR: AesCtrParams: length: Missing required property.
|
| -PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: 0}, keys.aesCtr, data) threw exception NotSupportedError: Failed to execute 'encrypt' on 'SubtleCrypto': key.algorithm does not match that of operation.
|
| -PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: 18}, keys.aesCtr, data) threw exception NotSupportedError: Failed to execute 'encrypt' on 'SubtleCrypto': key.algorithm does not match that of operation.
|
| -PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: 256}, keys.aesCtr, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CTR: AesCtrParams: length: Outside of numeric range.
|
| -PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: -3}, keys.aesCtr, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CTR: AesCtrParams: length: Outside of numeric range.
|
| -PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: Infinity}, keys.aesCtr, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CTR: AesCtrParams: length: Outside of numeric range.
|
| -PASS crypto.subtle.encrypt(aesCbc, keys.hmacSha1, data) threw exception NotSupportedError: Failed to execute 'encrypt' on 'SubtleCrypto': key.algorithm does not match that of operation.
|
| -PASS crypto.subtle.encrypt(aesCbc, keys.aesCbcJustDecrypt, data) threw exception NotSupportedError: Failed to execute 'encrypt' on 'SubtleCrypto': key.usages does not permit this operation.
|
| PASS crypto.subtle.encrypt({name: 'bogus'}, null, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Invalid key argument.
|
| +PASS: 'crypto.subtle.encrypt({name: 'AES-CBC', iv: null}, keys.aesCbc, data)' rejected with null
|
| +PASS: 'crypto.subtle.encrypt({name: 'AES-CBC'}, keys.aesCbc, data)' rejected with null
|
| +PASS: 'crypto.subtle.encrypt({name: 'AES-CBC', iv: 3}, keys.aesCbc, data)' rejected with null
|
| +PASS: 'crypto.subtle.encrypt({name: 'AES-CBC', iv: new Uint8Array(0)}, keys.aesCbc, data)' rejected with null
|
| +PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: null}, keys.aesCtr, data)' rejected with null
|
| +PASS: 'crypto.subtle.encrypt({name: 'AES-CTR'}, keys.aesCtr, data)' rejected with null
|
| +PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(0)}, keys.aesCtr, data)' rejected with null
|
| +PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: 0}, keys.aesCtr, data)' rejected with null
|
| +PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: 18}, keys.aesCtr, data)' rejected with null
|
| +PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: 256}, keys.aesCtr, data)' rejected with null
|
| +PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: -3}, keys.aesCtr, data)' rejected with null
|
| +PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: Infinity}, keys.aesCtr, data)' rejected with null
|
| +PASS: 'crypto.subtle.encrypt(aesCbc, keys.hmacSha1, data)' rejected with null
|
| +PASS: 'crypto.subtle.encrypt(aesCbc, keys.aesCbcJustDecrypt, data)' rejected with null
|
| PASS successfullyParsed is true
|
|
|
| TEST COMPLETE
|
|
|