OLD | NEW |
(Empty) | |
| 1 Tests cypto.subtle.sign and crypto.subtle.verify |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 PASS crypto.subtle.wrapKey('bad-format', key, wrappingKey, wrapAlgorithm) threw
exception TypeError: Failed to execute 'wrapKey' on 'SubtleCrypto': Invalid keyF
ormat argument. |
| 7 PASS crypto.subtle.wrapKey('raw', 1, wrappingKey, wrapAlgorithm) threw exception
TypeError: Failed to execute 'wrapKey' on 'SubtleCrypto': Invalid key argument. |
| 8 PASS crypto.subtle.wrapKey('raw', key, '', wrapAlgorithm) threw exception TypeEr
ror: Failed to execute 'wrapKey' on 'SubtleCrypto': Invalid wrappingKey argument
. |
| 9 PASS crypto.subtle.wrapKey('raw', key, wrappingKey, undefined) threw exception T
ypeError: Failed to execute 'wrapKey' on 'SubtleCrypto': Algorithm: Not an objec
t. |
| 10 PASS crypto.subtle.wrapKey('raw', keys.aesCbcJustDecrypt, wrappingKey, wrapAlgor
ithm) threw exception NotSupportedError: Failed to execute 'wrapKey' on 'SubtleC
rypto': key is not extractable. |
| 11 PASS crypto.subtle.wrapKey('raw', key, keys.aesCbcJustDecrypt, wrapAlgorithm) th
rew exception NotSupportedError: Failed to execute 'wrapKey' on 'SubtleCrypto':
key.usages does not permit this operation. |
| 12 PASS crypto.subtle.wrapKey('raw', key, wrappingKey, {name: 'SHA-1'}) threw excep
tion NotSupportedError: Failed to execute 'wrapKey' on 'SubtleCrypto': Algorithm
: SHA-1: Unsupported operation. |
| 13 PASS crypto.subtle.wrapKey('raw', key, wrappingKey, aesCtrAlgorithm) threw excep
tion NotSupportedError: Failed to execute 'wrapKey' on 'SubtleCrypto': key.algor
ithm does not match that of operation. |
| 14 PASS crypto.subtle.unwrapKey('bad-format', wrappedKey, unwrappingKey, unwrapAlgo
rithm, unwrappedKeyAlgorithm, extractable, keyUsages) threw exception TypeError:
Failed to execute 'unwrapKey' on 'SubtleCrypto': Invalid keyFormat argument. |
| 15 PASS crypto.subtle.unwrapKey('raw', null, unwrappingKey, unwrapAlgorithm, unwrap
pedKeyAlgorithm, extractable, keyUsages) threw exception TypeError: Failed to ex
ecute 'unwrapKey' on 'SubtleCrypto': Invalid wrappedKey argument. |
| 16 PASS crypto.subtle.unwrapKey('raw', wrappedKey, 'hi', unwrapAlgorithm, unwrapped
KeyAlgorithm, extractable, keyUsages) threw exception TypeError: Failed to execu
te 'unwrapKey' on 'SubtleCrypto': Invalid unwrappingKey argument. |
| 17 PASS crypto.subtle.unwrapKey('raw', wrappedKey, keys.aesCbcJustDecrypt, unwrapAl
gorithm, unwrappedKeyAlgorithm, extractable, keyUsages) threw exception NotSuppo
rtedError: Failed to execute 'unwrapKey' on 'SubtleCrypto': key.usages does not
permit this operation. |
| 18 PASS crypto.subtle.unwrapKey('raw', wrappedKey, 'hi', unwrapAlgorithm, null, ext
ractable, 9) threw exception TypeError: The 7th argument is neither an array, no
r does it have indexed properties.. |
| 19 PASS crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, null, unwrappedKe
yAlgorithm, extractable, keyUsages) threw exception TypeError: Failed to execute
'unwrapKey' on 'SubtleCrypto': Algorithm: Not an object. |
| 20 PASS crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, unwrapAlgorithm,
3, extractable, keyUsages) threw exception TypeError: Failed to execute 'unwrapK
ey' on 'SubtleCrypto': parameter 5 ('unwrappedKeyAlgorithm') is not an object.. |
| 21 PASS crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, {name: 'SHA-1'},
unwrappedKeyAlgorithm, extractable, keyUsages) threw exception NotSupportedError
: Failed to execute 'unwrapKey' on 'SubtleCrypto': Algorithm: SHA-1: Unsupported
operation. |
| 22 PASS crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, aesCtrAlgorithm,
unwrappedKeyAlgorithm, extractable, keyUsages) threw exception NotSupportedError
: Failed to execute 'unwrapKey' on 'SubtleCrypto': key.algorithm does not match
that of operation. |
| 23 PASS successfullyParsed is true |
| 24 |
| 25 TEST COMPLETE |
| 26 |
OLD | NEW |