blob: c5c62beace0c9c895c78457a199f527729ce3655 [file] [log] [blame]
Test exporting a P-384 ECDH key pair with JWK format.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Generating a key pair...
Exporting the public key...
PASS publicKey.kty is 'EC'
PASS publicKey.crv is 'P-384'
PASS Base64URL.parse(publicKey.x).byteLength is 48
PASS Base64URL.parse(publicKey.y).byteLength is 48
PASS publicKey.d is undefined.
PASS publicKey.key_ops is [ ]
PASS publicKey.ext is true
Exporting the private key...
PASS privateKey.kty is 'EC'
PASS privateKey.crv is 'P-384'
PASS Base64URL.parse(privateKey.x).byteLength is 48
PASS Base64URL.parse(privateKey.y).byteLength is 48
PASS Base64URL.parse(privateKey.d).byteLength is 48
PASS privateKey.key_ops is ['deriveBits', 'deriveKey']
PASS privateKey.ext is true
PASS successfullyParsed is true
TEST COMPLETE