summaryrefslogtreecommitdiff
path: root/ext/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'ext/crypto')
-rw-r--r--ext/crypto/01_webidl.js12
-rw-r--r--ext/crypto/lib.deno_crypto.d.ts8
2 files changed, 4 insertions, 16 deletions
diff --git a/ext/crypto/01_webidl.js b/ext/crypto/01_webidl.js
index 05c79373c..35c16d913 100644
--- a/ext/crypto/01_webidl.js
+++ b/ext/crypto/01_webidl.js
@@ -153,18 +153,6 @@
webidl.converters.EcKeyGenParams = webidl
.createDictionaryConverter("EcKeyGenParams", dictEcKeyGenParams);
- const dictEcImportParams = [
- ...new SafeArrayIterator(dictAlgorithm),
- {
- key: "namedCurve",
- converter: webidl.converters.NamedCurve,
- required: true,
- },
- ];
-
- webidl.converters.EcImportParams = webidl
- .createDictionaryConverter("EcImportParams", dictEcImportParams);
-
const dictAesKeyGenParams = [
...new SafeArrayIterator(dictAlgorithm),
{
diff --git a/ext/crypto/lib.deno_crypto.d.ts b/ext/crypto/lib.deno_crypto.d.ts
index 3ab6bda36..a5c775a02 100644
--- a/ext/crypto/lib.deno_crypto.d.ts
+++ b/ext/crypto/lib.deno_crypto.d.ts
@@ -82,7 +82,7 @@ interface EcKeyGenParams extends Algorithm {
namedCurve: NamedCurve;
}
-interface EcImportParams extends Algorithm {
+interface EcKeyImportParams extends Algorithm {
namedCurve: NamedCurve;
}
@@ -210,7 +210,7 @@ interface SubtleCrypto {
| AlgorithmIdentifier
| HmacImportParams
| RsaHashedImportParams
- | EcImportParams,
+ | EcKeyImportParams,
extractable: boolean,
keyUsages: KeyUsage[],
): Promise<CryptoKey>;
@@ -221,7 +221,7 @@ interface SubtleCrypto {
| AlgorithmIdentifier
| HmacImportParams
| RsaHashedImportParams
- | EcImportParams,
+ | EcKeyImportParams,
extractable: boolean,
keyUsages: KeyUsage[],
): Promise<CryptoKey>;
@@ -309,7 +309,7 @@ interface SubtleCrypto {
| AlgorithmIdentifier
| HmacImportParams
| RsaHashedImportParams
- | EcImportParams,
+ | EcKeyImportParams,
extractable: boolean,
keyUsages: KeyUsage[],
): Promise<CryptoKey>;