Exported version of golang.org/x/crypto/sha3
https://golang.org/x/crypto/sha3
DataHoarder
2cb3a24eaa
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/tag Build is passing
Details
Package sha3 recommends the SHAKE functions for new uses, but this is currently somewhat inconvenient because ShakeHash does not implement hash.Hash. This is understandable, as SHAKE supports arbitrary-length outputs whereas hash.Hash only supports fixed-length outputs. But there's a natural fixed-length output to provide: the minimum output that still provides SHAKE's full-strength generic security. While here, tweak Sum so that its temporary buffer can be stack allocated. Also, tweak the panic message in Write so that the error text is more readily understandable to Go programmers without needing to be familiar with crypto jargon, and add a similar check in Sum. |
||
---|---|---|
testdata | ||
.drone.yml | ||
LICENSE | ||
PATENTS | ||
README.md | ||
doc.go | ||
go.mod | ||
go.sum | ||
hashes.go | ||
hashes_generic.go | ||
keccakf.go | ||
keccakf_amd64.go | ||
keccakf_amd64.s | ||
register.go | ||
sha3.go | ||
sha3_s390x.go | ||
sha3_s390x.s | ||
sha3_test.go | ||
shake.go | ||
shake_generic.go | ||
xor.go | ||
xor_generic.go | ||
xor_unaligned.go |
README.md
sha3
Exported version of golang.org/x/crypto/sha3 for better escape analysis and prevent Write/Read heap allocations.