From c41460ecc421ac7730cc5455542e5e05f7366c4a Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Tue, 14 Sep 2021 18:51:20 +0530 Subject: feat(ext/crypto): import RSA pkcs#8 keys (#11891) --- ext/crypto/01_webidl.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ext/crypto/01_webidl.js') 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 = [ -- cgit v1.2.3