summaryrefslogtreecommitdiff
path: root/ext/crypto/01_webidl.js
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2021-09-14 18:51:20 +0530
committerGitHub <noreply@github.com>2021-09-14 15:21:20 +0200
commitc41460ecc421ac7730cc5455542e5e05f7366c4a (patch)
tree18b7ac8683d6543b0610c25d42df089e2bf7d183 /ext/crypto/01_webidl.js
parentd36b01ff6956930b51a80cd773f618b708a5f595 (diff)
feat(ext/crypto): import RSA pkcs#8 keys (#11891)
Diffstat (limited to 'ext/crypto/01_webidl.js')
-rw-r--r--ext/crypto/01_webidl.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/crypto/01_webidl.js b/ext/crypto/01_webidl.js
index 78a897fbc..8d9e061c6 100644
--- a/ext/crypto/01_webidl.js
+++ b/ext/crypto/01_webidl.js
@@ -103,6 +103,19 @@
dictRsaHashedKeyGenParams,
);
+ const dictRsaHashedImportParams = [
+ ...dictAlgorithm,
+ {
+ key: "hash",
+ converter: webidl.converters.HashAlgorithmIdentifier,
+ required: true,
+ },
+ ];
+
+ webidl.converters.RsaHashedImportParams = webidl.createDictionaryConverter(
+ "RsaHashedImportParams",
+ dictRsaHashedImportParams,
+ );
webidl.converters.NamedCurve = webidl.converters.DOMString;
const dictEcKeyGenParams = [