From 91f6c5fc7e6f66f0e963c5cfbec281da4bcfc496 Mon Sep 17 00:00:00 2001 From: Sean Michael Wykes <8363933+SeanWykes@users.noreply.github.com> Date: Tue, 11 Jan 2022 01:44:47 -0300 Subject: feat(ext/crypto): implement AES-KW for wrapKey/unwrapKey (#13286) --- ext/crypto/lib.deno_crypto.d.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'ext/crypto/lib.deno_crypto.d.ts') diff --git a/ext/crypto/lib.deno_crypto.d.ts b/ext/crypto/lib.deno_crypto.d.ts index 9c7386dc9..f17c1f582 100644 --- a/ext/crypto/lib.deno_crypto.d.ts +++ b/ext/crypto/lib.deno_crypto.d.ts @@ -293,7 +293,11 @@ interface SubtleCrypto { format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, - wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams, + wrapAlgorithm: + | AlgorithmIdentifier + | RsaOaepParams + | AesCbcParams + | AesCtrParams, ): Promise; unwrapKey( format: KeyFormat, @@ -302,12 +306,13 @@ interface SubtleCrypto { unwrapAlgorithm: | AlgorithmIdentifier | RsaOaepParams - | AesCbcParams, + | AesCbcParams + | AesCtrParams, unwrappedKeyAlgorithm: | AlgorithmIdentifier - | RsaHashedImportParams | HmacImportParams - | AesKeyAlgorithm, + | RsaHashedImportParams + | EcImportParams, extractable: boolean, keyUsages: KeyUsage[], ): Promise; -- cgit v1.2.3