Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1262,8 +1262,15 @@ <h1>Web Cryptography API Live Table</h1>
"namedCurve": "P-256",
"public": key2.publicKey,
}, key1.privateKey, 128)
.then(ok("ecdh", "deriveBits", "Yes"))
.then(ok("ecdh", "deriveBits", "With Length"))
.catch(err("ecdh", "deriveBits", "No"));
window.crypto.subtle.deriveBits({
"name": "ECDH",
"namedCurve": "P-256",
"public": key2.publicKey,
}, key1.privateKey, null)
.then(ok("ecdh", "deriveBits", "Null Length"))
.catch(err("ecdh", "deriveBits", "Null Length"));

})
.catch(err("ecdh", "deriveBits", "N/A"));
Expand Down Expand Up @@ -1298,9 +1305,9 @@ <h1>Web Cryptography API Live Table</h1>
.catch(err("ecdh", "importKey", "jwk-priv"));

//raw
window.crypto.subtle.importKey("raw", null, ECDH, false, ["deriveBits", "deriveKey"])
window.crypto.subtle.importKey("raw", new Uint8Array([4,214,216,80,169,57,179,244,8,2,153,20,52,209,120,4,26,208,84,209,225,206,72,239,168,198,6,58,172,223,140,18,0,216,191,176,75,169,134,185,177,219,186,16,113,49,29,188,133,218,162,201,14,163,196,28,31,237,167,17,18,142,107,176,38]), ECDH, false, ["deriveBits", "deriveKey"])
.then(ok("ecdh", "importKey", "raw-pub"))
.catch(err("ecdh", "importKey", "raw-pub*"));
.catch(e=>{console.log(e);err("ecdh", "importKey", "raw-pub*")});

//spki
window.crypto.subtle.importKey("spki", new Uint8Array([
Expand Down Expand Up @@ -4876,4 +4883,3 @@ <h1>Web Cryptography API Live Table</h1>
</p>
</body>
</html>