| 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: Invalid keyUsages argument. | 8 PASS crypto.subtle.generateKey(aesCbc, extractable, ['boo']) threw exception Typ
eError: Invalid keyUsages argument. |
| 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. | 9 PASS crypto.subtle.generateKey({ name: 'aes-cbc' }, extractable, keyUsages) thre
w exception TypeError: Algorithm: AES-CBC: AesKeyGenParams: length: Missing requ
ired property. |
| 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. | 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 TypeError: Algorithm: AES-CBC: AesKeyGenParams: length:
Outside of numeric range. | 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 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. | 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 TypeError: Algorithm: HMAC: HmacKey
Params: length: Outside of numeric range. | 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: Algorithm: HMAC: HmacKe
yParams: hash: Algorithm: Unrecognized algorithm name. | 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 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. | 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 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. | 16 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: N
aN}, extractable , keyUsages) threw exception TypeError: Algorithm: HMAC: HmacKe
yParams: length: Is not a number. |
| 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 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. | 17 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 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. | 18 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. |
| 19 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: c
rypto}, extractable , keyUsages) threw exception TypeError: Algorithm: HMAC: Hma
cKeyParams: length: Is not a number. |
| 20 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: u
ndefined}, extractable , keyUsages) threw exception TypeError: Algorithm: HMAC:
HmacKeyParams: length: Is not a number. |
| 21 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: '
48'}, extractable , keyUsages) did not throw exception. |
| 22 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: n
ull}, extractable , keyUsages) did not throw exception. |
| 23 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: t
rue}, extractable , keyUsages) did not throw exception. |
| 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. | 24 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 TypeError: Algorithm: RSASSA-PKCS1-v1_5
: RsaKeyGenParams: modulusLength: Outside of numeric range. | 25 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: NaN},
extractable , keyUsages) threw exception TypeError: Algorithm: RSASSA-PKCS1-v1_5
: RsaKeyGenParams: modulusLength: Is not a number. |
| 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. | 26 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5'}, extractable , keyUsa
ges) threw exception TypeError: Algorithm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: m
odulusLength: Missing required property. |
| 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. | 27 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 TypeError: Algorithm
: RSASSA-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Arra
y. | 28 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 TypeError: Algorit
hm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Ar
ray. | 29 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' | 30 PASS key.type is 'private' |
| 27 PASS key.extractable is true | 31 PASS key.extractable is true |
| 28 PASS key.algorithm.name is 'AES-CBC' | 32 PASS key.algorithm.name is 'AES-CBC' |
| 29 PASS key.algorithm.length is 1024 | 33 PASS key.algorithm.length is 1024 |
| 30 PASS key.usages.join(',') is 'encrypt,decrypt' | 34 PASS key.usages.join(',') is 'encrypt,decrypt' |
| 31 PASS key.type is 'private' | 35 PASS key.type is 'private' |
| 32 PASS key.extractable is false | 36 PASS key.extractable is false |
| 33 PASS key.algorithm.name is 'HMAC' | 37 PASS key.algorithm.name is 'HMAC' |
| 34 PASS key.algorithm.hash.name is 'SHA-256' | 38 PASS key.algorithm.hash.name is 'SHA-256' |
| 35 PASS key.algorithm.length is null | 39 PASS key.algorithm.length is null |
| 36 PASS key.usages.join(',') is 'sign' | 40 PASS key.usages.join(',') is 'sign' |
| 37 PASS key.type is 'private' | 41 PASS key.type is 'private' |
| 38 PASS key.extractable is false | 42 PASS key.extractable is false |
| 39 PASS key.algorithm.name is 'HMAC' | 43 PASS key.algorithm.name is 'HMAC' |
| 40 PASS key.algorithm.hash.name is 'SHA-256' | 44 PASS key.algorithm.hash.name is 'SHA-256' |
| 41 PASS key.algorithm.length is 48 | 45 PASS key.algorithm.length is 48 |
| 42 PASS key.usages.join(',') is 'sign' | 46 PASS key.usages.join(',') is 'sign' |
| 43 PASS successfullyParsed is true | 47 PASS successfullyParsed is true |
| 44 | 48 |
| 45 TEST COMPLETE | 49 TEST COMPLETE |
| 46 | 50 |
| OLD | NEW |