OLD | NEW |
1 Tests algorithm normalization. | 1 Tests algorithm normalization. |
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 algorithm.name is 'SHA-1' | 6 PASS algorithm.name is 'SHA-1' |
7 PASS algorithm.name is 'SHA-256' | 7 PASS algorithm.name is 'SHA-256' |
8 PASS normalizeDigest({}) threw exception NotSupportedError: The implementation d
id not support the requested type of object or operation.. | 8 PASS normalizeDigest({}) threw exception NotSupportedError: The implementation d
id not support the requested type of object or operation.. |
9 PASS normalizeDigest({name: null}) threw exception NotSupportedError: The implem
entation did not support the requested type of object or operation.. | 9 PASS normalizeDigest({name: null}) threw exception NotSupportedError: The implem
entation did not support the requested type of object or operation.. |
10 PASS normalizeDigest({name: -1}) threw exception NotSupportedError: The implemen
tation did not support the requested type of object or operation.. | 10 PASS normalizeDigest({name: -1}) threw exception NotSupportedError: The implemen
tation did not support the requested type of object or operation.. |
11 PASS normalizeDigest({name: ''}) threw exception NotSupportedError: The implemen
tation did not support the requested type of object or operation.. | 11 PASS normalizeDigest({name: ''}) threw exception NotSupportedError: The implemen
tation did not support the requested type of object or operation.. |
12 PASS normalizeDigest({name: 'nosuchalgorithm'}) threw exception NotSupportedErro
r: The implementation did not support the requested type of object or operation.
. | 12 PASS normalizeDigest({name: 'nosuchalgorithm'}) threw exception NotSupportedErro
r: The implementation did not support the requested type of object or operation.
. |
13 PASS normalizeDigest({name: '\u0189'}) threw exception SyntaxError: An invalid o
r illegal string was specified.. | 13 PASS normalizeDigest({name: '\u0189'}) threw exception SyntaxError: An invalid o
r illegal string was specified.. |
14 PASS normalizeDigest(null) threw exception NotSupportedError: The implementation
did not support the requested type of object or operation.. | 14 PASS normalizeDigest(null) threw exception NotSupportedError: The implementation
did not support the requested type of object or operation.. |
15 PASS normalizeDigest(0) threw exception TypeError: Not an object.. | 15 PASS normalizeDigest(0) threw exception TypeError: Not an object.. |
16 PASS normalizeDigest(undefined) threw exception NotSupportedError: The implement
ation did not support the requested type of object or operation.. | 16 PASS normalizeDigest(undefined) threw exception NotSupportedError: The implement
ation did not support the requested type of object or operation.. |
17 PASS normalizeDigest('') threw exception TypeError: Not an object.. | 17 PASS normalizeDigest('') threw exception TypeError: Not an object.. |
18 PASS algorithm.noSuchParam is undefined. | 18 PASS algorithm.noSuchParam is undefined. |
19 PASS algorithm.name is 'AES-CBC' | 19 PASS algorithm.name is 'AES-CBC' |
20 PASS algorithm.iv.length is 16 | 20 PASS algorithm.iv.length is 16 |
21 PASS algorithm.iv[3] is 3 | 21 PASS algorithm.iv[3] is 3 |
22 PASS algorithm.iv[3] is 3 | 22 PASS algorithm.iv[3] is 3 |
23 PASS normalizeEncrypt(rawAlgorithm) threw exception NotSupportedError: The imple
mentation did not support the requested type of object or operation.. | 23 PASS normalizeEncrypt(rawAlgorithm, aesCbcKey) threw exception NotSupportedError
: The implementation did not support the requested type of object or operation.. |
24 PASS algorithm.name is 'SHA-384' | 24 PASS algorithm.name is 'SHA-384' |
25 PASS algorithm.name is 'SHA-384' | 25 PASS algorithm.name is 'SHA-384' |
26 PASS algorithm.name is 'AES-CBC' | 26 PASS algorithm.name is 'AES-CBC' |
27 PASS algorithm.iv.length is 16 | 27 PASS algorithm.iv.length is 16 |
28 PASS algorithm.iv[1] is 1 | 28 PASS algorithm.iv[1] is 1 |
29 PASS algorithm.name is 'AES-CBC' | 29 PASS algorithm.name is 'AES-CBC' |
30 PASS algorithm.iv.length is 16 | 30 PASS algorithm.iv.length is 16 |
31 PASS algorithm.iv[1] is 1 | 31 PASS algorithm.iv[1] is 1 |
32 PASS normalizeEncrypt({ name: 'SHA-1' }) threw exception NotSupportedError: The
implementation did not support the requested type of object or operation.. | 32 PASS normalizeEncrypt({ name: 'SHA-1' }, aesCbcKey) threw exception NotSupported
Error: The implementation did not support the requested type of object or operat
ion.. |
33 PASS normalizeDigest({ name: 'AES-CBC', iv: originalIv }) threw exception NotSup
portedError: The implementation did not support the requested type of object or
operation.. | 33 PASS normalizeDigest({ name: 'AES-CBC', iv: originalIv }) threw exception NotSup
portedError: The implementation did not support the requested type of object or
operation.. |
34 PASS normalizeSign({name: 'hmac'}) threw exception NotSupportedError: The implem
entation did not support the requested type of object or operation.. | 34 PASS normalizeSign({name: 'hmac'}, hmacSha1Key) threw exception NotSupportedErro
r: The implementation did not support the requested type of object or operation.
. |
35 PASS normalizeSign({name: 'hmac', hash: 'foo'}) threw exception NotSupportedErro
r: The implementation did not support the requested type of object or operation.
. | 35 PASS normalizeSign({name: 'hmac', hash: 'foo'}, hmacSha1Key) threw exception Not
SupportedError: The implementation did not support the requested type of object
or operation.. |
36 PASS normalizeSign({name: 'hmac', hash: { name: 'AES-CBC', iv: originalIv }}) th
rew exception NotSupportedError: The implementation did not support the requeste
d type of object or operation.. | 36 PASS normalizeSign({name: 'hmac', hash: { name: 'AES-CBC', iv: originalIv }}, hm
acSha1Key) threw exception NotSupportedError: The implementation did not support
the requested type of object or operation.. |
37 PASS algorithm.name is 'HMAC' | 37 PASS algorithm.name is 'HMAC' |
38 PASS algorithm.hash.name is 'SHA-1' | 38 PASS algorithm.hash.name is 'SHA-1' |
39 PASS normalizeEncrypt(validHmacSha1) threw exception NotSupportedError: The impl
ementation did not support the requested type of object or operation.. | 39 PASS normalizeEncrypt(validHmacSha1, hmacSha1Key) threw exception NotSupportedEr
ror: The implementation did not support the requested type of object or operatio
n.. |
| 40 PASS normalizeSign({name: 'RSASSA-PKCS1-v1_5'}, rsaSsaKey) threw exception NotSu
pportedError: The implementation did not support the requested type of object or
operation.. |
| 41 PASS normalizeSign({name: 'RSASSA-PKCS1-v1_5', hash: 'foo'}, rsaSsaKey) threw ex
ception NotSupportedError: The implementation did not support the requested type
of object or operation.. |
| 42 PASS normalizeSign({name: 'RSASSA-PKCS1-v1_5', hash: { name: 'AES-CBC', iv: orig
inalIv }}, rsaSsaKey) threw exception NotSupportedError: The implementation did
not support the requested type of object or operation.. |
| 43 PASS algorithm.name is 'RSASSA-PKCS1-v1_5' |
| 44 PASS algorithm.hash.name is 'SHA-256' |
| 45 PASS normalizeEncrypt(validRsaSsa, rsaSsaKey) threw exception NotSupportedError:
The implementation did not support the requested type of object or operation.. |
40 PASS crypto.subtle.encrypt(algorithmIdentifier, aesCbcKeyNoEncrypt) threw except
ion NotSupportedError: The implementation did not support the requested type of
object or operation.. | 46 PASS crypto.subtle.encrypt(algorithmIdentifier, aesCbcKeyNoEncrypt) threw except
ion NotSupportedError: The implementation did not support the requested type of
object or operation.. |
41 PASS crypto.subtle.encrypt(algorithmIdentifier, hmacSha1Key) threw exception Not
SupportedError: The implementation did not support the requested type of object
or operation.. | 47 PASS crypto.subtle.encrypt(algorithmIdentifier, hmacSha1Key) threw exception Not
SupportedError: The implementation did not support the requested type of object
or operation.. |
42 PASS crypto.subtle.sign(algorithmIdentifier, hmacSha1Key) threw exception NotSup
portedError: The implementation did not support the requested type of object or
operation.. | 48 PASS crypto.subtle.sign(algorithmIdentifier, hmacSha1Key) threw exception NotSup
portedError: The implementation did not support the requested type of object or
operation.. |
43 PASS successfullyParsed is true | 49 PASS successfullyParsed is true |
44 | 50 |
45 TEST COMPLETE | 51 TEST COMPLETE |
46 | 52 |
OLD | NEW |