diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2021-10-11 20:07:51 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 16:37:51 +0200 |
commit | 3b2cb8e7113b19344209eddc8bc1bd447fcec4ea (patch) | |
tree | 616169290b703184047ad7beb4b9c79011a2a6ef /ext/crypto/lib.deno_crypto.d.ts | |
parent | 426ebf854a82c63cdaa2413fbd1b005025dba95b (diff) |
feat(ext/crypto): implement AES-CBC encryption & decryption (#12123)
* initial stuff
* stuff
* merge stuff
* cleanup
* fmt
* length
* update lockfile
* decrypt
* fixy
* clippy hello?
* hmm
* fixs
* fix lint
* add AesCbcParams
* fixes
* fixy
* lockfile fixy
* fix dumb assertions
* re run CI
* rerun CI
* rerun CI
Diffstat (limited to 'ext/crypto/lib.deno_crypto.d.ts')
-rw-r--r-- | ext/crypto/lib.deno_crypto.d.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/crypto/lib.deno_crypto.d.ts b/ext/crypto/lib.deno_crypto.d.ts index e5592d5bf..4ed7c51f8 100644 --- a/ext/crypto/lib.deno_crypto.d.ts +++ b/ext/crypto/lib.deno_crypto.d.ts @@ -56,6 +56,10 @@ interface JsonWebKey { y?: string; } +interface AesCbcParams extends Algorithm { + iv: BufferSource; +} + interface HmacKeyGenParams extends Algorithm { hash: HashAlgorithmIdentifier; length?: number; @@ -213,12 +217,12 @@ interface SubtleCrypto { data: BufferSource, ): Promise<ArrayBuffer>; encrypt( - algorithm: AlgorithmIdentifier | RsaOaepParams, + algorithm: AlgorithmIdentifier | RsaOaepParams | AesCbcParams, key: CryptoKey, data: BufferSource, ): Promise<ArrayBuffer>; decrypt( - algorithm: AlgorithmIdentifier | RsaOaepParams, + algorithm: AlgorithmIdentifier | RsaOaepParams | AesCbcParams, key: CryptoKey, data: BufferSource, ): Promise<ArrayBuffer>; |