diff --git a/src/webcrypto/aes.ts b/src/webcrypto/aes.ts index 512d5d0..65d8f75 100644 --- a/src/webcrypto/aes.ts +++ b/src/webcrypto/aes.ts @@ -23,11 +23,7 @@ const enum BlockMode { GCM = 'AES-GCM', } -function getCryptParams( - algo: BlockMode, - nonce: Uint8Array, - AAD?: Uint8Array -) { +function getCryptParams(algo: BlockMode, nonce: Uint8Array, AAD?: Uint8Array) { if (algo === BlockMode.CBC) return { name: BlockMode.CBC, iv: nonce }; if (algo === BlockMode.CTR) return { name: BlockMode.CTR, counter: nonce, length: 64 }; if (algo === BlockMode.GCM) return { name: BlockMode.GCM, iv: nonce, additionalData: AAD };