Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Feb 28, 2024
1 parent dc0064d commit bb07802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webcrypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ export const utils = {
const mode = {
CBC: 'AES-CBC',
CTR: 'AES-CTR',
GCM: 'AES-GCM'
GCM: 'AES-GCM',
} as const;
type BlockMode = typeof mode[keyof typeof mode]
type BlockMode = (typeof mode)[keyof typeof mode];

function getCryptParams(algo: BlockMode, nonce: Uint8Array, AAD?: Uint8Array) {
if (algo === mode.CBC) return { name: mode.CBC, iv: nonce };
Expand Down

0 comments on commit bb07802

Please sign in to comment.