mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-27 02:09:27 +00:00
fix lint
This commit is contained in:
parent
6a9c532139
commit
ad564ccff9
3 changed files with 3 additions and 3 deletions
|
|
@ -17,4 +17,4 @@ var _ KeccakState = (*Hasher)(nil)
|
||||||
|
|
||||||
func NewFastKeccak() *Hasher {
|
func NewFastKeccak() *Hasher {
|
||||||
return &Hasher{}
|
return &Hasher{}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue