Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: LayoutTests/crypto/encrypt-decrypt-expected.txt

Issue 98723004: [webcrypto] Fix a bad test. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update tests Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/crypto/encrypt-decrypt.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Tests cypto.subtle.encrypt and crypto.subtle.decrypt 1 Tests cypto.subtle.encrypt and crypto.subtle.decrypt
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS: Failed to import key of length 0 bytes 6 PASS: Failed to import key of length 0 bytes
7 PASS: Failed to import key of length 1 bytes 7 PASS: Failed to import key of length 1 bytes
8 PASS: Failed to import key of length 15 bytes 8 PASS: Failed to import key of length 15 bytes
9 PASS: Failed to import key of length 17 bytes 9 PASS: Failed to import key of length 17 bytes
10 PASS: Failed to import key of length 31 bytes 10 PASS: Failed to import key of length 31 bytes
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 PASS: Decryption should be [6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb7 6fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710] an d was 43 PASS: Decryption should be [6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb7 6fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710] an d was
44 PASS: Decryption should be [6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb7 6fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff6] and was 44 PASS: Decryption should be [6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb7 6fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff6] and was
45 PASS: Decryption should be [6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb7 6fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be6] and was 45 PASS: Decryption should be [6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb7 6fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be6] and was
46 PASS: Decryption should be [] and was 46 PASS: Decryption should be [] and was
47 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. 47 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.
48 PASS crypto.subtle.encrypt({name: 'AES-CBC'}, keys.aesCbc, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CBC: A esCbcParams: iv: Missing or not a ArrayBufferView. 48 PASS crypto.subtle.encrypt({name: 'AES-CBC'}, keys.aesCbc, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CBC: A esCbcParams: iv: Missing or not a ArrayBufferView.
49 PASS crypto.subtle.encrypt({name: 'AES-CBC', iv: 3}, keys.aesCbc, data) threw ex ception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES -CBC: AesCbcParams: iv: Missing or not a ArrayBufferView. 49 PASS crypto.subtle.encrypt({name: 'AES-CBC', iv: 3}, keys.aesCbc, data) threw ex ception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES -CBC: AesCbcParams: iv: Missing or not a ArrayBufferView.
50 PASS crypto.subtle.encrypt({name: 'AES-CBC', iv: new Uint8Array[0]}, keys.aesCbc , data) threw exception TypeError: undefined is not a function. 50 PASS crypto.subtle.encrypt({name: 'AES-CBC', iv: new Uint8Array[0]}, keys.aesCbc , data) threw exception TypeError: undefined is not a function.
51 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: null}, keys.aesCtr, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algori thm: AES-CTR: AesCtrParams: counter: Missing or not a Uint8Array. 51 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: null}, keys.aesCtr, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algori thm: AES-CTR: AesCtrParams: counter: Missing or not a Uint8Array.
52 PASS crypto.subtle.encrypt({name: 'AES-CTR'}, keys.aesCtr, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CTR: A esCtrParams: counter: Missing or not a Uint8Array. 52 PASS crypto.subtle.encrypt({name: 'AES-CTR'}, keys.aesCtr, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CTR: A esCtrParams: counter: Missing or not a Uint8Array.
53 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[0]}, keys.a esCtr, data) threw exception TypeError: undefined is not a function. 53 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(0)}, keys.a esCtr, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCr ypto': Algorithm: AES-CTR: AesCtrParams: length: Missing required property.
54 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16]}, keys. aesCtr, data) threw exception TypeError: undefined is not a function. 54 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length : 0}, keys.aesCtr, data) threw exception NotSupportedError: Failed to execute 'e ncrypt' on 'SubtleCrypto': key.algorithm does not match that of operation.
55 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16]}, keys. aesCtr, data) threw exception TypeError: undefined is not a function. 55 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.
56 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length : 0}, keys.aesCtr, data) threw exception TypeError: undefined is not a function. 56 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 numeri c range.
57 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length : 18}, keys.aesCtr, data) threw exception TypeError: undefined is not a function . 57 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.
58 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length : -3}, keys.aesCtr, data) threw exception TypeError: undefined is not a function . 58 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length : Infinity}, keys.aesCtr, data) threw exception TypeError: Failed to execute 'en crypt' on 'SubtleCrypto': Algorithm: AES-CTR: AesCtrParams: length: Outside of n umeric range.
59 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length : Infinity}, keys.aesCtr, data) threw exception TypeError: undefined is not a fu nction.
60 PASS crypto.subtle.encrypt(aesCbc, keys.hmacSha1, data) threw exception NotSuppo rtedError: Failed to execute 'encrypt' on 'SubtleCrypto': key.algorithm does not match that of operation. 59 PASS crypto.subtle.encrypt(aesCbc, keys.hmacSha1, data) threw exception NotSuppo rtedError: Failed to execute 'encrypt' on 'SubtleCrypto': key.algorithm does not match that of operation.
61 PASS crypto.subtle.encrypt(aesCbc, keys.aesCbcJustDecrypt, data) threw exception NotSupportedError: Failed to execute 'encrypt' on 'SubtleCrypto': key.usages do es not permit this operation. 60 PASS crypto.subtle.encrypt(aesCbc, keys.aesCbcJustDecrypt, data) threw exception NotSupportedError: Failed to execute 'encrypt' on 'SubtleCrypto': key.usages do es not permit this operation.
62 PASS crypto.subtle.encrypt({name: 'bogus'}, null, data) threw exception TypeErro r: Failed to execute 'encrypt' on 'SubtleCrypto': Invalid key argument. 61 PASS crypto.subtle.encrypt({name: 'bogus'}, null, data) threw exception TypeErro r: Failed to execute 'encrypt' on 'SubtleCrypto': Invalid key argument.
63 PASS successfullyParsed is true 62 PASS successfullyParsed is true
64 63
65 TEST COMPLETE 64 TEST COMPLETE
66 65
OLDNEW
« no previous file with comments | « LayoutTests/crypto/encrypt-decrypt.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698