OLD | NEW |
1 Tests cypto.subtle.generateKey. | 1 Tests cypto.subtle.generateKey. |
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 crypto.subtle.generateKey(aesCbc, extractable, -1) threw exception TypeErro
r: Type error. | 6 PASS crypto.subtle.generateKey(aesCbc, extractable, -1) threw exception TypeErro
r: Type error. |
7 PASS crypto.subtle.generateKey(aesCbc, extractable, null) threw exception TypeEr
ror: Type error. | 7 PASS crypto.subtle.generateKey(aesCbc, extractable, null) threw exception TypeEr
ror: Type error. |
8 PASS crypto.subtle.generateKey(aesCbc, extractable, ['boo']) threw exception Typ
eError: Type error. | 8 PASS crypto.subtle.generateKey(aesCbc, extractable, ['boo']) threw exception Typ
eError: Type error. |
9 PASS crypto.subtle.generateKey({ name: 'aes-cbc' }, extractable, keyUsages) thre
w exception NotSupportedError: The implementation did not support the requested
type of object or operation.. | 9 PASS crypto.subtle.generateKey({ name: 'aes-cbc' }, extractable, keyUsages) thre
w exception TypeError: Algorithm: AES-CBC: AesKeyGenParams: length: Missing or n
ot a number. |
10 PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: 70000 }, extractable,
keyUsages) threw exception NotSupportedError: The implementation did not support
the requested type of object or operation.. | 10 PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: 70000 }, extractable,
keyUsages) threw exception TypeError: Algorithm: AES-CBC: AesKeyGenParams: lengt
h: Outside of numeric range. |
11 PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: -3 }, extractable, key
Usages) threw exception NotSupportedError: The implementation did not support th
e requested type of object or operation.. | 11 PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: -3 }, extractable, key
Usages) threw exception TypeError: Algorithm: AES-CBC: AesKeyGenParams: length:
Outside of numeric range. |
12 FAIL crypto.subtle.generateKey({ name: 'aes-cbc', length: -Infinity }, extractab
le, keyUsages) should throw an exception. Was [object Promise]. | 12 PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: -Infinity }, extractab
le, keyUsages) threw exception TypeError: Algorithm: AES-CBC: AesKeyGenParams: l
ength: Outside of numeric range. |
13 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: -
3}, extractable , keyUsages) threw exception NotSupportedError: The implementati
on did not support the requested type of object or operation.. | 13 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: -
3}, extractable , keyUsages) threw exception TypeError: Algorithm: HMAC: HmacKey
Params: length: Outside of numeric range. |
14 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: ''}, length: 48}, ext
ractable , keyUsages) threw exception NotSupportedError: The implementation did
not support the requested type of object or operation.. | 14 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: ''}, length: 48}, ext
ractable , keyUsages) threw exception NotSupportedError: Algorithm: HMAC: HmacKe
yParams: hash: Algorithm: Unrecognized algorithm name. |
15 FAIL crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: 5
000000000}, extractable , keyUsages) should throw an exception. Was [object Prom
ise]. | 15 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: 5
000000000}, extractable , keyUsages) threw exception TypeError: Algorithm: HMAC:
HmacKeyParams: length: Outside of numeric range. |
16 FAIL crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: N
aN}, extractable , keyUsages) should throw an exception. Was [object Promise]. | 16 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: N
aN}, extractable , keyUsages) threw exception TypeError: Algorithm: HMAC: HmacKe
yParams: length: Outside of numeric range. |
17 FAIL crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: -
NaN}, extractable , keyUsages) should throw an exception. Was [object Promise]. | 17 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: -
NaN}, extractable , keyUsages) threw exception TypeError: Algorithm: HMAC: HmacK
eyParams: length: Outside of numeric range. |
18 FAIL crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: I
nfinity}, extractable , keyUsages) should throw an exception. Was [object Promis
e]. | 18 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: I
nfinity}, extractable , keyUsages) threw exception TypeError: Algorithm: HMAC: H
macKeyParams: length: Outside of numeric range. |
19 FAIL crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: -
Infinity}, extractable , keyUsages) should throw an exception. Was [object Promi
se]. | 19 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: -
Infinity}, extractable , keyUsages) threw exception TypeError: Algorithm: HMAC:
HmacKeyParams: length: Outside of numeric range. |
20 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: -30},
extractable , keyUsages) threw exception NotSupportedError: The implementation d
id not support the requested type of object or operation.. | 20 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: -30},
extractable , keyUsages) threw exception TypeError: Algorithm: RSASSA-PKCS1-v1_5
: RsaKeyGenParams: modulusLength: Outside of numeric range. |
21 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: NaN},
extractable , keyUsages) threw exception NotSupportedError: The implementation d
id not support the requested type of object or operation.. | 21 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: NaN},
extractable , keyUsages) threw exception TypeError: Algorithm: RSASSA-PKCS1-v1_5
: RsaKeyGenParams: modulusLength: Outside of numeric range. |
22 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5'}, extractable , keyUsa
ges) threw exception NotSupportedError: The implementation did not support the r
equested type of object or operation.. | 22 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5'}, extractable , keyUsa
ges) threw exception TypeError: Algorithm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: m
odulusLength: Missing or not a number. |
23 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10}, e
xtractable , keyUsages) threw exception NotSupportedError: The implementation di
d not support the requested type of object or operation.. | 23 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10}, e
xtractable , keyUsages) threw exception TypeError: Algorithm: RSASSA-PKCS1-v1_5:
RsaKeyGenParams: publicExponent: Missing or not a Uint8Array. |
24 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10, pu
blicExponent: 10}, extractable , keyUsages) threw exception NotSupportedError: T
he implementation did not support the requested type of object or operation.. | 24 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10, pu
blicExponent: 10}, extractable , keyUsages) threw exception TypeError: Algorithm
: RSASSA-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Arra
y. |
25 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10, pu
blicExponent: null}, extractable , keyUsages) threw exception NotSupportedError:
The implementation did not support the requested type of object or operation.. | 25 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10, pu
blicExponent: null}, extractable , keyUsages) threw exception TypeError: Algorit
hm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Ar
ray. |
26 PASS key.type is 'private' | 26 PASS key.type is 'private' |
27 PASS key.extractable is true | 27 PASS key.extractable is true |
28 PASS key.algorithm.name is 'AES-CBC' | 28 PASS key.algorithm.name is 'AES-CBC' |
29 PASS key.algorithm.length is 1024 | 29 PASS key.algorithm.length is 1024 |
30 PASS key.usages.join(',') is 'encrypt,decrypt' | 30 PASS key.usages.join(',') is 'encrypt,decrypt' |
31 PASS key.type is 'private' | 31 PASS key.type is 'private' |
32 PASS key.extractable is false | 32 PASS key.extractable is false |
33 PASS key.algorithm.name is 'HMAC' | 33 PASS key.algorithm.name is 'HMAC' |
34 PASS key.algorithm.hash.name is 'SHA-256' | 34 PASS key.algorithm.hash.name is 'SHA-256' |
35 PASS key.algorithm.length is null | 35 PASS key.algorithm.length is null |
36 PASS key.usages.join(',') is 'sign' | 36 PASS key.usages.join(',') is 'sign' |
37 PASS key.type is 'private' | 37 PASS key.type is 'private' |
38 PASS key.extractable is false | 38 PASS key.extractable is false |
39 PASS key.algorithm.name is 'HMAC' | 39 PASS key.algorithm.name is 'HMAC' |
40 PASS key.algorithm.hash.name is 'SHA-256' | 40 PASS key.algorithm.hash.name is 'SHA-256' |
41 PASS key.algorithm.length is 48 | 41 PASS key.algorithm.length is 48 |
42 PASS key.usages.join(',') is 'sign' | 42 PASS key.usages.join(',') is 'sign' |
43 PASS successfullyParsed is true | 43 PASS successfullyParsed is true |
44 | 44 |
45 TEST COMPLETE | 45 TEST COMPLETE |
46 | 46 |
OLD | NEW |