diff --git a/src/providers/webcrypto/aes_ctr.ts b/src/providers/webcrypto/aes_ctr.ts index bbeda6f..944d3b6 100644 --- a/src/providers/webcrypto/aes_ctr.ts +++ b/src/providers/webcrypto/aes_ctr.ts @@ -21,7 +21,7 @@ export default class WebCryptoAesCtr implements ICTRLike { public async encryptCtr(iv: Uint8Array, plaintext: Uint8Array): Promise { const ciphertext = await this.crypto.subtle.encrypt( - { name: "AES-CTR", counter: iv, length: 16 }, + { name: "AES-CTR", counter: iv, length: 128 }, this.key, plaintext, );