mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
fix(ext/crypto): use EcKeyImportParams dictionary (#13894)
This commit is contained in:
parent
47f22777be
commit
6ecadf6398
2 changed files with 4 additions and 16 deletions
|
@ -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),
|
||||
{
|
||||
|
|
8
ext/crypto/lib.deno_crypto.d.ts
vendored
8
ext/crypto/lib.deno_crypto.d.ts
vendored
|
@ -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>;
|
||||
|
|
Loading…
Add table
Reference in a new issue