| <script src="../../resources/js-test-pre.js"></script> |
| <script src="../resources/common.js"></script> |
| description("Test exporting a RSA-PSS public key with SPKI format."); |
| publicExponent: new Uint8Array([0x01, 0x00, 0x01]), // Equivalent to 65537 |
| debug("Generating a key pair..."); |
| crypto.subtle.generateKey(algorithmKeyGen, extractable, ["sign", "verify"]).then(function(result) { |
| debug("Exporting the public key..."); |
| return crypto.subtle.exportKey("spki", keyPair.publicKey); |
| }).then(function(result) { |
| shouldBe("publicKey.byteLength", "294"); |
| <script src="../../resources/js-test-post.js"></script> |