summaryrefslogtreecommitdiff
path: root/ext/crypto/01_webidl.js
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2021-10-08 20:59:36 +0530
committerGitHub <noreply@github.com>2021-10-08 17:29:36 +0200
commita5d3c8b06cba652b902fdfaa3f13ed40483e90c0 (patch)
tree967413a9cdab742cbc7a500006859ac938b79d53 /ext/crypto/01_webidl.js
parentc49a057599d68b27c88cc123a9fcd6703b49310c (diff)
feat(ext/crypto): implement deriveBits for ECDH (p256) (#11873)
Diffstat (limited to 'ext/crypto/01_webidl.js')
-rw-r--r--ext/crypto/01_webidl.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/crypto/01_webidl.js b/ext/crypto/01_webidl.js
index 8d9e061c6..90bee464c 100644
--- a/ext/crypto/01_webidl.js
+++ b/ext/crypto/01_webidl.js
@@ -385,4 +385,16 @@
webidl.converters.CryptoKeyPair = webidl
.createDictionaryConverter("CryptoKeyPair", dictCryptoKeyPair);
+
+ const dictEcdhKeyDeriveParams = [
+ ...dictAlgorithm,
+ {
+ key: "public",
+ converter: webidl.converters.CryptoKey,
+ required: true,
+ },
+ ];
+
+ webidl.converters.EcdhKeyDeriveParams = webidl
+ .createDictionaryConverter("EcdhKeyDeriveParams", dictEcdhKeyDeriveParams);
})(this);