OLD | NEW |
1 Test wrapping and unwrapping keys with AES-KW. | 1 Test wrapping and unwrapping keys with AES-KW. |
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 Importing key encryption key... | 6 Importing key encryption key... |
7 Importing a key to be wrapped... | 7 Importing a key to be wrapped... |
8 Wrapping it... | 8 Wrapping it... |
9 PASS bytesToHexString(wrappedKey) is '1fa68b0a8112b447aef34bd8fb5a7b829d3e862371
d2cfe5' | 9 PASS bytesToHexString(wrappedKey) is '1fa68b0a8112b447aef34bd8fb5a7b829d3e862371
d2cfe5' |
10 Unwrapping it... | 10 Unwrapping it... |
11 PASS unwrappedKey.toString() is '[object CryptoKey]' | 11 PASS unwrappedKey.toString() is '[object CryptoKey]' |
12 PASS unwrappedKey.type is 'secret' | 12 PASS unwrappedKey.type is 'secret' |
13 PASS unwrappedKey.extractable is true | 13 PASS unwrappedKey.extractable is true |
14 PASS unwrappedKey.algorithm.name is 'AES-CBC' | 14 PASS unwrappedKey.algorithm.name is 'AES-CBC' |
15 PASS unwrappedKey.algorithm.length is 128 | 15 PASS unwrappedKey.algorithm.length is 128 |
16 PASS unwrappedKey.usages is ['encrypt', 'decrypt', 'wrapKey', 'unwrapKey'] | 16 PASS unwrappedKey.usages is ['encrypt', 'decrypt', 'wrapKey', 'unwrapKey'] |
17 Exporting it... | 17 Exporting it... |
18 PASS bytesToHexString(unwrappedKeyData) is bytesToHexString(keyData) | 18 PASS bytesToHexString(unwrappedKeyData) is bytesToHexString(keyData) |
19 PASS successfullyParsed is true | 19 PASS successfullyParsed is true |
20 | 20 |
21 TEST COMPLETE | 21 TEST COMPLETE |
22 | 22 |
OLD | NEW |