summaryrefslogtreecommitdiff
path: root/ext/crypto/01_webidl.js
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2021-08-25 01:29:02 +0530
committerGitHub <noreply@github.com>2021-08-24 21:59:02 +0200
commit85a56e7144cb2e213eb670f754027d19e31c315a (patch)
treebc9757ef1340a14cd0efce3856bda3ef5ba9f2fa /ext/crypto/01_webidl.js
parent4853be20f2d649842ebc97124d8479c7aad7cc9b (diff)
feat(ext/crypto): implement encrypt, decrypt & generateKey for RSA-OAEP (#11654)
Diffstat (limited to 'ext/crypto/01_webidl.js')
-rw-r--r--ext/crypto/01_webidl.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/crypto/01_webidl.js b/ext/crypto/01_webidl.js
index 7e78170b4..4216cb524 100644
--- a/ext/crypto/01_webidl.js
+++ b/ext/crypto/01_webidl.js
@@ -138,6 +138,17 @@
webidl.converters.RsaPssParams = webidl
.createDictionaryConverter("RsaPssParams", dictRsaPssParams);
+ const dictRsaOaepParams = [
+ ...dictAlgorithm,
+ {
+ key: "label",
+ converter: webidl.converters["BufferSource"],
+ },
+ ];
+
+ webidl.converters.RsaOaepParams = webidl
+ .createDictionaryConverter("RsaOaepParams", dictRsaOaepParams);
+
const dictEcdsaParams = [
...dictAlgorithm,
{