This commit is contained in:
Sahil-4555 2026-02-23 15:36:07 +05:30 committed by Sahil Sojitra
parent 6a9c532139
commit ad564ccff9
3 changed files with 3 additions and 3 deletions

View file

@ -17,4 +17,4 @@ var _ KeccakState = (*Hasher)(nil)
func NewFastKeccak() *Hasher { func NewFastKeccak() *Hasher {
return &Hasher{} return &Hasher{}
} }

View file

@ -130,4 +130,4 @@ func xorIn(state *[200]byte, data []byte) {
for i := n << 3; i < len(data); i++ { for i := n << 3; i < len(data); i++ {
state[i] ^= data[i] state[i] ^= data[i]
} }
} }

View file

@ -16,4 +16,4 @@ type Hasher struct{ sponge }
func xorAndPermute(state *[200]byte, buf *byte) { func xorAndPermute(state *[200]byte, buf *byte) {
xorIn(state, unsafe.Slice(buf, rate)) xorIn(state, unsafe.Slice(buf, rate))
keccakF1600(state) keccakF1600(state)
} }