summaryrefslogtreecommitdiff
path: root/ext/crypto/lib.deno_crypto.d.ts
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2021-12-05 09:25:11 +0530
committerGitHub <noreply@github.com>2021-12-05 04:55:11 +0100
commitd31378726e78490e88b8a9ec3001b86ea009d978 (patch)
treebfe465d848b862f8144288419028f16e8fe88ecf /ext/crypto/lib.deno_crypto.d.ts
parentc59f90d01f06f995e335c6de76aab0b9ba2c98e5 (diff)
feat(ext/crypto): implement unwrapKey (#12539)
Diffstat (limited to 'ext/crypto/lib.deno_crypto.d.ts')
-rw-r--r--ext/crypto/lib.deno_crypto.d.ts16
1 files changed, 16 insertions, 0 deletions
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<ArrayBuffer>;
+ unwrapKey(
+ format: KeyFormat,
+ wrappedKey: BufferSource,
+ unwrappingKey: CryptoKey,
+ unwrapAlgorithm:
+ | AlgorithmIdentifier
+ | RsaOaepParams
+ | AesCbcParams,
+ unwrappedKeyAlgorithm:
+ | AlgorithmIdentifier
+ | RsaHashedImportParams
+ | HmacImportParams
+ | AesKeyAlgorithm,
+ extractable: boolean,
+ keyUsages: KeyUsage[],
+ ): Promise<CryptoKey>;
}
declare interface Crypto {