0
0
Fork 0
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:
Filip Skokan 2022-03-11 15:05:40 +01:00 committed by GitHub
parent 47f22777be
commit 6ecadf6398
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 16 deletions

View file

@ -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),
{

View file

@ -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>;