summaryrefslogtreecommitdiff
path: root/ext/crypto/01_webidl.js
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2021-09-12 02:24:03 +0530
committerGitHub <noreply@github.com>2021-09-11 16:54:03 -0400
commit0cb22d4cba76cf86486db3d311a6a4c61b93d953 (patch)
tree41364e69b146a4bd413bd2e3e400e3f984a596df /ext/crypto/01_webidl.js
parent40c63d1255642b8d70d7b5ce5b85a50f6af8a00d (diff)
feat(ext/crypto): implement HKDF operations (#11865)
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
Diffstat (limited to 'ext/crypto/01_webidl.js')
-rw-r--r--ext/crypto/01_webidl.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/crypto/01_webidl.js b/ext/crypto/01_webidl.js
index 3ef3eb175..78a897fbc 100644
--- a/ext/crypto/01_webidl.js
+++ b/ext/crypto/01_webidl.js
@@ -309,6 +309,28 @@
dictJsonWebKey,
);
+ const dictHkdfParams = [
+ ...dictAlgorithm,
+ {
+ key: "hash",
+ converter: webidl.converters.HashAlgorithmIdentifier,
+ required: true,
+ },
+ {
+ key: "salt",
+ converter: webidl.converters["BufferSource"],
+ required: true,
+ },
+ {
+ key: "info",
+ converter: webidl.converters["BufferSource"],
+ required: true,
+ },
+ ];
+
+ webidl.converters.HkdfParams = webidl
+ .createDictionaryConverter("HkdfParams", dictHkdfParams);
+
const dictPbkdf2Params = [
...dictAlgorithm,
{