From d31378726e78490e88b8a9ec3001b86ea009d978 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Sun, 5 Dec 2021 09:25:11 +0530 Subject: feat(ext/crypto): implement unwrapKey (#12539) --- ext/crypto/lib.deno_crypto.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (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 682296d3c..013f08bf8 100644 --- a/ext/crypto/lib.deno_crypto.d.ts +++ b/ext/crypto/lib.deno_crypto.d.ts @@ -257,6 +257,22 @@ interface SubtleCrypto { wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams, ): Promise; + unwrapKey( + format: KeyFormat, + wrappedKey: BufferSource, + unwrappingKey: CryptoKey, + unwrapAlgorithm: + | AlgorithmIdentifier + | RsaOaepParams + | AesCbcParams, + unwrappedKeyAlgorithm: + | AlgorithmIdentifier + | RsaHashedImportParams + | HmacImportParams + | AesKeyAlgorithm, + extractable: boolean, + keyUsages: KeyUsage[], + ): Promise; } declare interface Crypto { -- cgit v1.2.3