mirror of
https://github.com/denoland/deno.git
synced 2025-08-15 08:10:19 +00: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
|
webidl.converters.EcKeyGenParams = webidl
|
||||||
.createDictionaryConverter("EcKeyGenParams", dictEcKeyGenParams);
|
.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 = [
|
const dictAesKeyGenParams = [
|
||||||
...new SafeArrayIterator(dictAlgorithm),
|
...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;
|
namedCurve: NamedCurve;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface EcImportParams extends Algorithm {
|
interface EcKeyImportParams extends Algorithm {
|
||||||
namedCurve: NamedCurve;
|
namedCurve: NamedCurve;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -210,7 +210,7 @@ interface SubtleCrypto {
|
||||||
| AlgorithmIdentifier
|
| AlgorithmIdentifier
|
||||||
| HmacImportParams
|
| HmacImportParams
|
||||||
| RsaHashedImportParams
|
| RsaHashedImportParams
|
||||||
| EcImportParams,
|
| EcKeyImportParams,
|
||||||
extractable: boolean,
|
extractable: boolean,
|
||||||
keyUsages: KeyUsage[],
|
keyUsages: KeyUsage[],
|
||||||
): Promise<CryptoKey>;
|
): Promise<CryptoKey>;
|
||||||
|
@ -221,7 +221,7 @@ interface SubtleCrypto {
|
||||||
| AlgorithmIdentifier
|
| AlgorithmIdentifier
|
||||||
| HmacImportParams
|
| HmacImportParams
|
||||||
| RsaHashedImportParams
|
| RsaHashedImportParams
|
||||||
| EcImportParams,
|
| EcKeyImportParams,
|
||||||
extractable: boolean,
|
extractable: boolean,
|
||||||
keyUsages: KeyUsage[],
|
keyUsages: KeyUsage[],
|
||||||
): Promise<CryptoKey>;
|
): Promise<CryptoKey>;
|
||||||
|
@ -309,7 +309,7 @@ interface SubtleCrypto {
|
||||||
| AlgorithmIdentifier
|
| AlgorithmIdentifier
|
||||||
| HmacImportParams
|
| HmacImportParams
|
||||||
| RsaHashedImportParams
|
| RsaHashedImportParams
|
||||||
| EcImportParams,
|
| EcKeyImportParams,
|
||||||
extractable: boolean,
|
extractable: boolean,
|
||||||
keyUsages: KeyUsage[],
|
keyUsages: KeyUsage[],
|
||||||
): Promise<CryptoKey>;
|
): Promise<CryptoKey>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue