OLD | NEW |
1 Test importing an EC public and private key for ECDH. | 1 Test importing an EC public and private key for ECDH. |
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 Importing a public key... | 6 Importing a public key... |
7 PASS publicKey.toString() is '[object CryptoKey]' | 7 PASS publicKey.toString() is '[object CryptoKey]' |
8 PASS publicKey.type is 'public' | 8 PASS publicKey.type is 'public' |
9 PASS publicKey.usages is [] | 9 PASS publicKey.usages is [] |
10 PASS publicKey.algorithm.name is 'ECDH' | 10 PASS publicKey.algorithm.name is 'ECDH' |
11 PASS publicKey.algorithm.namedCurve is 'P-256' | 11 PASS publicKey.algorithm.namedCurve is 'P-256' |
12 | 12 |
13 Importing a private key... | 13 Importing a private key... |
14 PASS privateKey.toString() is '[object CryptoKey]' | 14 PASS privateKey.toString() is '[object CryptoKey]' |
15 PASS privateKey.type is 'private' | 15 PASS privateKey.type is 'private' |
16 PASS privateKey.usages is ['deriveBits'] | 16 PASS privateKey.usages is ['deriveBits'] |
17 PASS privateKey.algorithm.name is 'ECDH' | 17 PASS privateKey.algorithm.name is 'ECDH' |
18 PASS privateKey.algorithm.namedCurve is 'P-384' | 18 PASS privateKey.algorithm.namedCurve is 'P-384' |
19 PASS successfullyParsed is true | 19 PASS successfullyParsed is true |
20 | 20 |
21 TEST COMPLETE | 21 TEST COMPLETE |
22 | 22 |
OLD | NEW |