Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Dec 29, 2023
1 parent 2dd5c0a commit a91a39b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/webcrypto/aes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit a91a39b

Please sign in to comment.