Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Commit

Permalink
fix: shake digest size
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider authored and daviddias committed May 7, 2018
1 parent e0fc922 commit 5444fba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ module.exports = {
sha3384: toCallback(toBuf(sha3.sha3_384)),
sha3256: toCallback(toBuf(sha3.sha3_256)),
sha3224: toCallback(toBuf(sha3.sha3_224)),
shake128: toCallback(toBuf(sha3.shake_128, 256)),
shake256: toCallback(toBuf(sha3.shake_256, 512)),
shake128: toCallback(toBuf(sha3.shake_128, 128)),
shake256: toCallback(toBuf(sha3.shake_256, 256)),
keccak224: toCallback(toBuf(sha3.keccak_224)),
keccak256: toCallback(toBuf(sha3.keccak_256)),
keccak384: toCallback(toBuf(sha3.keccak_384)),
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/encodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ module.exports = [[
], [
'beep boop',
'shake-128',
'18205fe422311f770743c2e0d86bcca092111cbce85487212829739c3c3723776e5a'
'18105fe422311f770743c2e0d86bcca09211'
], [
'beep boop',
'shake-256',
'194059feb5565e4f924baef74708649fed376d63948a862322ed763ecf093b63b38b0955908c099c63dda73ee469c31b1456cec95e325bd868d0ce0c0135f5a54411'
'192059feb5565e4f924baef74708649fed376d63948a862322ed763ecf093b63b38b'
], [
'beep boop',
'keccak-224',
Expand Down

0 comments on commit 5444fba

Please sign in to comment.