blob: 0c7a2b676a2381b280d6baf9d71b0613ccff7761 [file] [log] [blame]
Test importing P-256, P-384 and P-521 SPKI ECDH keys that are using the ecDH algorithm identifier
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Importing a P-256 key that uses the ecDH algorithm identifier ...
PASS publicKey.toString() is '[object CryptoKey]'
PASS publicKey.type is 'public'
PASS publicKey.extractable is true
PASS publicKey.algorithm.name is 'ECDH'
PASS publicKey.algorithm.namedCurve is 'P-256'
PASS publicKey.usages is [ ]
Importing a P-384 key that uses the ecDH algorithm identifier ...
PASS publicKey.toString() is '[object CryptoKey]'
PASS publicKey.type is 'public'
PASS publicKey.extractable is true
PASS publicKey.algorithm.name is 'ECDH'
PASS publicKey.algorithm.namedCurve is 'P-384'
PASS publicKey.usages is [ ]
Importing a P-521 key that uses the ecDH algorithm identifier ...
Importing EC P-521 key failed, likely due to missing P-521 support.
PASS successfullyParsed is true
TEST COMPLETE