OLD | NEW |
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 |
11 PASS: Failed to import key of length 33 bytes | 11 PASS: Failed to import key of length 33 bytes |
12 PASS: Failed to import key of length 23 bytes | 12 PASS: Failed to import key of length 23 bytes |
13 PASS: Failed to import key of length 25 bytes | 13 PASS: Failed to import key of length 25 bytes |
14 PASS: Failed to import key of length 64 bytes | 14 PASS: Failed to import key of length 64 bytes |
15 PASS tmpKey.type is 'secret' | 15 PASS tmpKey.type is 'secret' |
16 PASS tmpKey.extractable is false | 16 PASS tmpKey.extractable is false |
17 PASS tmpKey.algorithm.name is 'AES-CBC' | 17 PASS tmpKey.algorithm.name is 'AES-CBC' |
18 PASS tmpKey.usages.join(',') is 'encrypt,decrypt' | 18 PASS tmpKey.usages.join(',') is 'decrypt,encrypt' |
19 PASS tmpKey.type is 'secret' | 19 PASS tmpKey.type is 'secret' |
20 PASS tmpKey.extractable is false | 20 PASS tmpKey.extractable is false |
21 PASS tmpKey.algorithm.name is 'AES-CBC' | 21 PASS tmpKey.algorithm.name is 'AES-CBC' |
22 PASS tmpKey.usages.join(',') is 'encrypt,decrypt' | 22 PASS tmpKey.usages.join(',') is 'decrypt,encrypt' |
23 PASS tmpKey.type is 'secret' | 23 PASS tmpKey.type is 'secret' |
24 PASS tmpKey.extractable is false | 24 PASS tmpKey.extractable is false |
25 PASS tmpKey.algorithm.name is 'AES-CBC' | 25 PASS tmpKey.algorithm.name is 'AES-CBC' |
26 PASS tmpKey.usages.join(',') is 'encrypt,decrypt' | 26 PASS tmpKey.usages.join(',') is 'decrypt,encrypt' |
27 PASS tmpKey.type is 'secret' | 27 PASS tmpKey.type is 'secret' |
28 PASS tmpKey.extractable is false | 28 PASS tmpKey.extractable is false |
29 PASS tmpKey.algorithm.name is 'AES-CBC' | 29 PASS tmpKey.algorithm.name is 'AES-CBC' |
30 PASS tmpKey.usages.join(',') is 'encrypt,decrypt' | 30 PASS tmpKey.usages.join(',') is 'decrypt,encrypt' |
31 PASS: Encryption should be [7649abac8119b246cee98e9b12e9197d5086cb9b507219ee95db
113a917678b273bed6b8e3c1743b7116e69e222295163ff1caa1681fac09120eca307586e1a78cb8
2807230e1321d3fae00d18cc2012] and was | 31 PASS: Encryption should be [7649abac8119b246cee98e9b12e9197d5086cb9b507219ee95db
113a917678b273bed6b8e3c1743b7116e69e222295163ff1caa1681fac09120eca307586e1a78cb8
2807230e1321d3fae00d18cc2012] and was |
32 PASS: Encryption should be [4f021db243bc633d7178183a9fa071e8b4d9ada9ad7dedf4e5e7
38763f69145a571b242012fb7ae07fa9baac3df102e0288c6f9ec554652e50ab55e121f099ae] an
d was | 32 PASS: Encryption should be [4f021db243bc633d7178183a9fa071e8b4d9ada9ad7dedf4e5e7
38763f69145a571b242012fb7ae07fa9baac3df102e0288c6f9ec554652e50ab55e121f099ae] an
d was |
33 PASS: Encryption should be [f58c4c04d6e5f1ba779eabfb5f7bfbd69cfc4e967edb808d679f
777bc6702c7d39f23369a9d9bacfa530e26304231461c9aaf02a6a54e9e242ccbf48c59daca6] an
d was | 33 PASS: Encryption should be [f58c4c04d6e5f1ba779eabfb5f7bfbd69cfc4e967edb808d679f
777bc6702c7d39f23369a9d9bacfa530e26304231461c9aaf02a6a54e9e242ccbf48c59daca6] an
d was |
34 PASS: Encryption should be [8518b8878d34e7185e300d0fcc426396] and was | 34 PASS: Encryption should be [8518b8878d34e7185e300d0fcc426396] and was |
35 PASS: Decryption succeeded | 35 PASS: Decryption succeeded |
36 PASS: decrypting failed. ciphertext length: 0 | 36 PASS: decrypting failed. ciphertext length: 0 |
37 PASS: decrypting failed. ciphertext length: 79 | 37 PASS: decrypting failed. ciphertext length: 79 |
38 PASS: decrypting failed. ciphertext length: 64 | 38 PASS: decrypting failed. ciphertext length: 64 |
39 PASS: decrypting failed. ciphertext length: 1 | 39 PASS: decrypting failed. ciphertext length: 1 |
40 PASS: decrypting failed. ciphertext length: 15 | 40 PASS: decrypting failed. ciphertext length: 15 |
(...skipping 16 matching lines...) Expand all Loading... |
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
: 18}, keys.aesCtr, data) threw exception TypeError: undefined is not a function
. |
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
: -3}, keys.aesCtr, data) threw exception TypeError: undefined is not a function
. |
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. | 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: key.algorithm does not match that of operation. | 60 PASS crypto.subtle.encrypt(aesCbc, keys.hmacSha1, data) threw exception NotSuppo
rtedError: key.algorithm does not match that of operation. |
61 PASS crypto.subtle.encrypt(aesCbc, keys.aesCbcJustDecrypt, data) threw exception
NotSupportedError: key.usages does not permit this operation. | 61 PASS crypto.subtle.encrypt(aesCbc, keys.aesCbcJustDecrypt, data) threw exception
NotSupportedError: key.usages does not permit this operation. |
62 PASS crypto.subtle.encrypt({name: 'bogus'}, null, data) threw exception TypeErro
r: Invalid key argument. | 62 PASS crypto.subtle.encrypt({name: 'bogus'}, null, data) threw exception TypeErro
r: Invalid key argument. |
63 PASS successfullyParsed is true | 63 PASS successfullyParsed is true |
64 | 64 |
65 TEST COMPLETE | 65 TEST COMPLETE |
66 | 66 |
OLD | NEW |