Skip to content

Commit

Permalink
Merge pull request #82 from stknob/pr/fix-cshake-xof
Browse files Browse the repository at this point in the history
Use XOF constructor wrapper for cShake
  • Loading branch information
paulmillr authored Feb 27, 2024
2 parents ba9d2df + 342fe48 commit a441a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sha3-addons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function cshakePers(hash: Keccak, opts: cShakeOpts = {}): Keccak {
}

const gencShake = (suffix: number, blockLen: number, outputLen: number) =>
wrapConstructorWithOpts<Keccak, cShakeOpts>((opts: cShakeOpts = {}) =>
wrapXOFConstructorWithOpts<Keccak, cShakeOpts>((opts: cShakeOpts = {}) =>
cshakePers(new Keccak(blockLen, suffix, chooseLen(opts, outputLen), true), opts)
);

Expand Down

0 comments on commit a441a61

Please sign in to comment.