summaryrefslogtreecommitdiff
path: root/ext/crypto/lib.deno_crypto.d.ts
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2022-01-05 20:42:30 +0530
committerGitHub <noreply@github.com>2022-01-05 20:42:30 +0530
commitc74eb7a889322e88173cb044a670602d124fcc67 (patch)
treeb5502919639a3f1b6285e8c44dcb4e0465d530f1 /ext/crypto/lib.deno_crypto.d.ts
parent9778545048a9908f62c24b93ae3ec0762e3db2d9 (diff)
feat(ext/crypto): implement AES-GCM encryption (#13119)
Diffstat (limited to 'ext/crypto/lib.deno_crypto.d.ts')
-rw-r--r--ext/crypto/lib.deno_crypto.d.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/crypto/lib.deno_crypto.d.ts b/ext/crypto/lib.deno_crypto.d.ts
index f7d735721..9c7386dc9 100644
--- a/ext/crypto/lib.deno_crypto.d.ts
+++ b/ext/crypto/lib.deno_crypto.d.ts
@@ -62,6 +62,12 @@ interface AesCbcParams extends Algorithm {
iv: BufferSource;
}
+interface AesGcmParams extends Algorithm {
+ iv: BufferSource;
+ additionalData?: BufferSource;
+ tagLength?: number;
+}
+
interface AesCtrParams extends Algorithm {
counter: BufferSource;
length: number;
@@ -248,6 +254,7 @@ interface SubtleCrypto {
| AlgorithmIdentifier
| RsaOaepParams
| AesCbcParams
+ | AesGcmParams
| AesCtrParams,
key: CryptoKey,
data: BufferSource,