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 requ
ired property. | 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. |
(...skipping 26 matching lines...) Expand all Loading... |
37 PASS key.algorithm.name is 'HMAC' | 37 PASS key.algorithm.name is 'HMAC' |
38 PASS key.algorithm.hash.name is 'SHA-256' | 38 PASS key.algorithm.hash.name is 'SHA-256' |
39 PASS key.algorithm.length is null | 39 PASS key.algorithm.length is null |
40 PASS key.usages.join(',') is 'sign' | 40 PASS key.usages.join(',') is 'sign' |
41 PASS key.type is 'private' | 41 PASS key.type is 'private' |
42 PASS key.extractable is false | 42 PASS key.extractable is false |
43 PASS key.algorithm.name is 'HMAC' | 43 PASS key.algorithm.name is 'HMAC' |
44 PASS key.algorithm.hash.name is 'SHA-256' | 44 PASS key.algorithm.hash.name is 'SHA-256' |
45 PASS key.algorithm.length is 48 | 45 PASS key.algorithm.length is 48 |
46 PASS key.usages.join(',') is 'sign' | 46 PASS key.usages.join(',') is 'sign' |
| 47 PASS keyPair.publicKey is defined. |
| 48 PASS keyPair.privateKey is defined. |
| 49 PASS keyPair.publicKey.type is 'public' |
| 50 PASS keyPair.publicKey.algorithm.name is 'RSASSA-PKCS1-v1_5' |
| 51 PASS keyPair.privateKey.type is 'private' |
| 52 PASS keyPair.privateKey.algorithm.name is 'RSASSA-PKCS1-v1_5' |
| 53 PASS keyPair.publicKey.foo is 'bar' |
| 54 PASS keyPair.publicKey.foo is 'bar' |
47 PASS successfullyParsed is true | 55 PASS successfullyParsed is true |
48 | 56 |
49 TEST COMPLETE | 57 TEST COMPLETE |
50 | 58 |
OLD | NEW |