diff options
author | 2024-10-07 12:02:26 +0000 | |
---|---|---|
committer | 2024-10-07 12:02:26 +0000 | |
commit | 33bd97a535834de4cec1b331ed511cb1ea49c4fe (patch) | |
tree | aeaf0edf99c78f630456b8b167982c613138133f /vendor/golang.org/x/crypto/sha3/shake.go | |
parent | update go-ffmpreg to v0.3.1 (pulls in latest wazero too) (#3398) (diff) | |
download | gotosocial-33bd97a535834de4cec1b331ed511cb1ea49c4fe.tar.xz |
[chore]: Bump golang.org/x/net from 0.29.0 to 0.30.0 (#3402)
Diffstat (limited to 'vendor/golang.org/x/crypto/sha3/shake.go')
-rw-r--r-- | vendor/golang.org/x/crypto/sha3/shake.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/golang.org/x/crypto/sha3/shake.go b/vendor/golang.org/x/crypto/sha3/shake.go index 1ea9275b8..a01ef4357 100644 --- a/vendor/golang.org/x/crypto/sha3/shake.go +++ b/vendor/golang.org/x/crypto/sha3/shake.go @@ -85,9 +85,9 @@ func newCShake(N, S []byte, rate, outputLen int, dsbyte byte) ShakeHash { // leftEncode returns max 9 bytes c.initBlock = make([]byte, 0, 9*2+len(N)+len(S)) - c.initBlock = append(c.initBlock, leftEncode(uint64(len(N)*8))...) + c.initBlock = append(c.initBlock, leftEncode(uint64(len(N))*8)...) c.initBlock = append(c.initBlock, N...) - c.initBlock = append(c.initBlock, leftEncode(uint64(len(S)*8))...) + c.initBlock = append(c.initBlock, leftEncode(uint64(len(S))*8)...) c.initBlock = append(c.initBlock, S...) c.Write(bytepad(c.initBlock, c.rate)) return &c |