| <script src="../../resources/js-test-pre.js"></script> |
| <script src="../resources/common.js"></script> |
| description("Test exporting a P-521 ECDH public key with raw format."); |
| debug("Generating a key pair..."); |
| crypto.subtle.generateKey(algorithmKeyGen, extractable, ["deriveKey", "deriveBits"]).then(function(result) { |
| debug("Exporting the public key..."); |
| return crypto.subtle.exportKey("raw", keyPair.publicKey); |
| }).then(function(result) { |
| shouldBe("publicKey.byteLength", "133"); |
| <script src="../../resources/js-test-post.js"></script> |