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

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

Issue 180323002: [webcrypto] Add parameter parsing for AES-GCM. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove addition to Dictionary Created 6 years, 10 months 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') | LayoutTests/crypto/resources/common.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 CONSOLE ERROR: Algorithm: AES-CBC: AesCbcParams: iv: Missing or not a ArrayBuffe rView 1 CONSOLE ERROR: Algorithm: AES-CBC: AesCbcParams: iv: Not an ArrayBufferView
2 CONSOLE ERROR: Algorithm: AES-CBC: AesCbcParams: iv: Missing or not a ArrayBuffe rView 2 CONSOLE ERROR: Algorithm: AES-CBC: AesCbcParams: iv: Missing required property
3 CONSOLE ERROR: Algorithm: AES-CBC: AesCbcParams: iv: Missing or not a ArrayBuffe rView 3 CONSOLE ERROR: Algorithm: AES-CBC: AesCbcParams: iv: Not an ArrayBufferView
4 CONSOLE ERROR: Algorithm: AES-CBC: AesCbcParams: iv: Must be 16 bytes 4 CONSOLE ERROR: Algorithm: AES-CBC: AesCbcParams: iv: Must be 16 bytes
5 CONSOLE ERROR: Algorithm: AES-CTR: AesCtrParams: counter: Missing or not a Uint8 Array 5 CONSOLE ERROR: Algorithm: AES-CTR: AesCtrParams: counter: Not an ArrayBufferView
6 CONSOLE ERROR: Algorithm: AES-CTR: AesCtrParams: counter: Missing or not a Uint8 Array 6 CONSOLE ERROR: Algorithm: AES-CTR: AesCtrParams: counter: Missing required prope rty
7 CONSOLE ERROR: Algorithm: AES-CTR: AesCtrParams: length: Missing required proper ty 7 CONSOLE ERROR: Algorithm: AES-CTR: AesCtrParams: length: Missing required proper ty
8 CONSOLE ERROR: key.algorithm does not match that of operation 8 CONSOLE ERROR: key.algorithm does not match that of operation
9 CONSOLE ERROR: key.algorithm does not match that of operation 9 CONSOLE ERROR: key.algorithm does not match that of operation
10 CONSOLE ERROR: Algorithm: AES-CTR: AesCtrParams: length: Outside of numeric rang e 10 CONSOLE ERROR: Algorithm: AES-CTR: AesCtrParams: length: Outside of numeric rang e
11 CONSOLE ERROR: Algorithm: AES-CTR: AesCtrParams: length: Outside of numeric rang e 11 CONSOLE ERROR: Algorithm: AES-CTR: AesCtrParams: length: Outside of numeric rang e
12 CONSOLE ERROR: Algorithm: AES-CTR: AesCtrParams: length: Outside of numeric rang e 12 CONSOLE ERROR: Algorithm: AES-CTR: AesCtrParams: length: Outside of numeric rang e
13 CONSOLE ERROR: Algorithm: AES-GCM: AesGcmParams: iv: Missing required property
14 CONSOLE ERROR: Algorithm: AES-GCM: AesGcmParams: iv: Not an ArrayBufferView
15 CONSOLE ERROR: Algorithm: AES-GCM: AesGcmParams: iv: Not an ArrayBufferView
16 CONSOLE ERROR: Algorithm: AES-GCM: AesGcmParams: additionalData: Not an ArrayBuf ferView
17 CONSOLE ERROR: Algorithm: AES-GCM: AesGcmParams: tagLength: Is not a number
18 CONSOLE ERROR: Algorithm: AES-GCM: AesGcmParams: tagLength: Outside of numeric r ange
19 CONSOLE ERROR: Algorithm: AES-GCM: AesGcmParams: tagLength: Outside of numeric r ange
13 CONSOLE ERROR: key.algorithm does not match that of operation 20 CONSOLE ERROR: key.algorithm does not match that of operation
14 CONSOLE ERROR: key.usages does not permit this operation 21 CONSOLE ERROR: key.usages does not permit this operation
15 Tests cypto.subtle.encrypt and crypto.subtle.decrypt 22 Tests cypto.subtle.encrypt and crypto.subtle.decrypt
16 23
17 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 24 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
18 25
19 26
20 PASS: Failed to import key of length 0 bytes 27 PASS: Failed to import key of length 0 bytes
21 PASS: Failed to import key of length 1 bytes 28 PASS: Failed to import key of length 1 bytes
22 PASS: Failed to import key of length 15 bytes 29 PASS: Failed to import key of length 15 bytes
(...skipping 12 matching lines...) Expand all
35 PASS tmpKey.algorithm.name is 'AES-CBC' 42 PASS tmpKey.algorithm.name is 'AES-CBC'
36 PASS tmpKey.usages.join(',') is 'decrypt,encrypt' 43 PASS tmpKey.usages.join(',') is 'decrypt,encrypt'
37 PASS tmpKey.type is 'secret' 44 PASS tmpKey.type is 'secret'
38 PASS tmpKey.extractable is false 45 PASS tmpKey.extractable is false
39 PASS tmpKey.algorithm.name is 'AES-CBC' 46 PASS tmpKey.algorithm.name is 'AES-CBC'
40 PASS tmpKey.usages.join(',') is 'decrypt,encrypt' 47 PASS tmpKey.usages.join(',') is 'decrypt,encrypt'
41 PASS tmpKey.type is 'secret' 48 PASS tmpKey.type is 'secret'
42 PASS tmpKey.extractable is false 49 PASS tmpKey.extractable is false
43 PASS tmpKey.algorithm.name is 'AES-CBC' 50 PASS tmpKey.algorithm.name is 'AES-CBC'
44 PASS tmpKey.usages.join(',') is 'decrypt,encrypt' 51 PASS tmpKey.usages.join(',') is 'decrypt,encrypt'
52 PASS tmpKey.type is 'secret'
53 PASS tmpKey.extractable is false
54 PASS tmpKey.algorithm.name is 'AES-GCM'
55 PASS tmpKey.usages.join(',') is 'decrypt,encrypt'
56 PASS tmpKey.type is 'secret'
57 PASS tmpKey.extractable is false
58 PASS tmpKey.algorithm.name is 'AES-GCM'
59 PASS tmpKey.usages.join(',') is 'decrypt,encrypt'
60 PASS tmpKey.type is 'secret'
61 PASS tmpKey.extractable is false
62 PASS tmpKey.algorithm.name is 'AES-GCM'
63 PASS tmpKey.usages.join(',') is 'decrypt,encrypt'
64 PASS tmpKey.type is 'secret'
65 PASS tmpKey.extractable is false
66 PASS tmpKey.algorithm.name is 'AES-GCM'
67 PASS tmpKey.usages.join(',') is 'decrypt,encrypt'
45 PASS: Encryption should be [7649abac8119b246cee98e9b12e9197d5086cb9b507219ee95db 113a917678b273bed6b8e3c1743b7116e69e222295163ff1caa1681fac09120eca307586e1a78cb8 2807230e1321d3fae00d18cc2012] and was 68 PASS: Encryption should be [7649abac8119b246cee98e9b12e9197d5086cb9b507219ee95db 113a917678b273bed6b8e3c1743b7116e69e222295163ff1caa1681fac09120eca307586e1a78cb8 2807230e1321d3fae00d18cc2012] and was
46 PASS: Encryption should be [4f021db243bc633d7178183a9fa071e8b4d9ada9ad7dedf4e5e7 38763f69145a571b242012fb7ae07fa9baac3df102e0288c6f9ec554652e50ab55e121f099ae] an d was 69 PASS: Encryption should be [4f021db243bc633d7178183a9fa071e8b4d9ada9ad7dedf4e5e7 38763f69145a571b242012fb7ae07fa9baac3df102e0288c6f9ec554652e50ab55e121f099ae] an d was
47 PASS: Encryption should be [f58c4c04d6e5f1ba779eabfb5f7bfbd69cfc4e967edb808d679f 777bc6702c7d39f23369a9d9bacfa530e26304231461c9aaf02a6a54e9e242ccbf48c59daca6] an d was 70 PASS: Encryption should be [f58c4c04d6e5f1ba779eabfb5f7bfbd69cfc4e967edb808d679f 777bc6702c7d39f23369a9d9bacfa530e26304231461c9aaf02a6a54e9e242ccbf48c59daca6] an d was
48 PASS: Encryption should be [8518b8878d34e7185e300d0fcc426396] and was 71 PASS: Encryption should be [8518b8878d34e7185e300d0fcc426396] and was
72 PASS: Encryption should be [72ac8493e3a5228b5d130a69d2510e42] and was
73 PASS: Encryption should be [751f3098d59cf4ea1d2fb0853bde1c] and was
74 PASS: Encryption should be [bdd2ed6c66fa087dce617d7fd1ff6d93ba82e49c55a22ed02ca6 7da4ec6f] and was
75 PASS: Encryption should be [c4489fa64a6edf80e7e6a3b8855bc37c772ee7de0f91a981c36c 93a35c88] and was
49 PASS: Decryption succeeded 76 PASS: Decryption succeeded
50 PASS: decrypting failed. ciphertext length: 0 77 PASS: decrypting failed. ciphertext length: 0
51 PASS: decrypting failed. ciphertext length: 79 78 PASS: decrypting failed. ciphertext length: 79
52 PASS: decrypting failed. ciphertext length: 64 79 PASS: decrypting failed. ciphertext length: 64
53 PASS: decrypting failed. ciphertext length: 1 80 PASS: decrypting failed. ciphertext length: 1
54 PASS: decrypting failed. ciphertext length: 15 81 PASS: decrypting failed. ciphertext length: 15
55 PASS: decrypting failed. ciphertext length: 16 82 PASS: decrypting failed. ciphertext length: 16
56 PASS: decrypting failed. ciphertext length: 17 83 PASS: decrypting failed. ciphertext length: 17
57 PASS: Decryption should be [6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb7 6fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710] an d was 84 PASS: Decryption should be [6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb7 6fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710] an d was
58 PASS: Decryption should be [6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb7 6fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff6] and was 85 PASS: Decryption should be [6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb7 6fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff6] and was
59 PASS: Decryption should be [6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb7 6fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be6] and was 86 PASS: Decryption should be [6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb7 6fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be6] and was
60 PASS: Decryption should be [] and was 87 PASS: Decryption should be [] and was
88 PASS: Decryption should be [] and was
89 PASS: Decryption should be [] and was
90 PASS: Decryption should be [bfaaaea3880d72d4378561e2597a9b35] and was
91 PASS: Decryption should be [d30b02c343487105219d6fa080acc743] and was
61 PASS crypto.subtle.encrypt({name: 'bogus'}, null, data) threw exception TypeErro r: Failed to execute 'encrypt' on 'SubtleCrypto': Invalid key argument. 92 PASS crypto.subtle.encrypt({name: 'bogus'}, null, data) threw exception TypeErro r: Failed to execute 'encrypt' on 'SubtleCrypto': Invalid key argument.
62 PASS: 'crypto.subtle.encrypt({name: 'AES-CBC', iv: null}, keys.aesCbc, data)' re jected with null 93 PASS: 'crypto.subtle.encrypt({name: 'AES-CBC', iv: null}, keys.aesCbc, data)' re jected with null
63 PASS: 'crypto.subtle.encrypt({name: 'AES-CBC'}, keys.aesCbc, data)' rejected wit h null 94 PASS: 'crypto.subtle.encrypt({name: 'AES-CBC'}, keys.aesCbc, data)' rejected wit h null
64 PASS: 'crypto.subtle.encrypt({name: 'AES-CBC', iv: 3}, keys.aesCbc, data)' rejec ted with null 95 PASS: 'crypto.subtle.encrypt({name: 'AES-CBC', iv: 3}, keys.aesCbc, data)' rejec ted with null
65 PASS: 'crypto.subtle.encrypt({name: 'AES-CBC', iv: new Uint8Array(0)}, keys.aesC bc, data)' rejected with null 96 PASS: 'crypto.subtle.encrypt({name: 'AES-CBC', iv: new Uint8Array(0)}, keys.aesC bc, data)' rejected with null
66 PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: null}, keys.aesCtr, data )' rejected with null 97 PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: null}, keys.aesCtr, data )' rejected with null
67 PASS: 'crypto.subtle.encrypt({name: 'AES-CTR'}, keys.aesCtr, data)' rejected wit h null 98 PASS: 'crypto.subtle.encrypt({name: 'AES-CTR'}, keys.aesCtr, data)' rejected wit h null
68 PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(0)}, keys .aesCtr, data)' rejected with null 99 PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(0)}, keys .aesCtr, data)' rejected with null
69 PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), leng th: 0}, keys.aesCtr, data)' rejected with null 100 PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), leng th: 0}, keys.aesCtr, data)' rejected with null
70 PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), leng th: 18}, keys.aesCtr, data)' rejected with null 101 PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), leng th: 18}, keys.aesCtr, data)' rejected with null
71 PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), leng th: 256}, keys.aesCtr, data)' rejected with null 102 PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), leng th: 256}, keys.aesCtr, data)' rejected with null
72 PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), leng th: -3}, keys.aesCtr, data)' rejected with null 103 PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), leng th: -3}, keys.aesCtr, data)' rejected with null
73 PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), leng th: Infinity}, keys.aesCtr, data)' rejected with null 104 PASS: 'crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), leng th: Infinity}, keys.aesCtr, data)' rejected with null
105 PASS: 'crypto.subtle.encrypt({name: 'AES-gcm'}, keys.aesGcm, data)' rejected wit h null
106 PASS: 'crypto.subtle.encrypt({name: 'AES-gcm', iv: 3}, keys.aesGcm, data)' rejec ted with null
107 PASS: 'crypto.subtle.encrypt({name: 'AES-gcm', iv: 'foo'}, keys.aesGcm, data)' r ejected with null
108 PASS: 'crypto.subtle.encrypt({name: 'AES-gcm', iv: new Uint8Array(16), additiona lData: '5'}, keys.aesGcm, data)' rejected with null
109 PASS: 'crypto.subtle.encrypt({name: 'AES-gcm', iv: new Uint8Array(16), additiona lData: new Uint8Array(1), tagLength: 'foo'}, keys.aesGcm, data)' rejected with n ull
110 PASS: 'crypto.subtle.encrypt({name: 'AES-gcm', iv: new Uint8Array(16), additiona lData: new Uint8Array(1), tagLength: -1}, keys.aesGcm, data)' rejected with null
111 PASS: 'crypto.subtle.encrypt({name: 'AES-gcm', iv: new Uint8Array(16), additiona lData: new Uint8Array(1), tagLength: 8000}, keys.aesGcm, data)' rejected with nu ll
74 PASS: 'crypto.subtle.encrypt(aesCbc, keys.hmacSha1, data)' rejected with null 112 PASS: 'crypto.subtle.encrypt(aesCbc, keys.hmacSha1, data)' rejected with null
75 PASS: 'crypto.subtle.encrypt(aesCbc, keys.aesCbcJustDecrypt, data)' rejected wit h null 113 PASS: 'crypto.subtle.encrypt(aesCbc, keys.aesCbcJustDecrypt, data)' rejected wit h null
76 PASS successfullyParsed is true 114 PASS successfullyParsed is true
77 115
78 TEST COMPLETE 116 TEST COMPLETE
79 117
OLDNEW
« no previous file with comments | « LayoutTests/crypto/encrypt-decrypt.html ('k') | LayoutTests/crypto/resources/common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698