Exported version of golang.org/x/crypto/sha3 https://golang.org/x/crypto/sha3
Go to file
DataHoarder 2cb3a24eaa
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
Apply upstream 3f0842a464 - have ShakeHash extend hash.Hash
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.
2024-04-07 03:11:12 +02:00
testdata Initial commit as of a4e984136a63c90def42a9336ac6507c2f6a896d 2023-05-12 08:31:31 +02:00
.drone.yml Enable Drone CI 2024-04-07 02:56:43 +02:00
LICENSE Initial commit as of a4e984136a63c90def42a9336ac6507c2f6a896d 2023-05-12 08:31:31 +02:00
PATENTS Initial commit as of a4e984136a63c90def42a9336ac6507c2f6a896d 2023-05-12 08:31:31 +02:00
README.md Initial commit as of a4e984136a63c90def42a9336ac6507c2f6a896d 2023-05-12 08:31:31 +02:00
doc.go Initial commit as of a4e984136a63c90def42a9336ac6507c2f6a896d 2023-05-12 08:31:31 +02:00
go.mod Apply upstream 8779cbd1c9 - update go directive to 1.18 2024-04-07 03:05:22 +02:00
go.sum Apply upstream 8779cbd1c9 - update go directive to 1.18 2024-04-07 03:05:22 +02:00
hashes.go Export internal state 2023-05-12 08:42:07 +02:00
hashes_generic.go Apply upstream 8779cbd1c9 - update go directive to 1.18 2024-04-07 03:05:22 +02:00
keccakf.go Apply upstream 8779cbd1c9 - update go directive to 1.18 2024-04-07 03:05:22 +02:00
keccakf_amd64.go Apply upstream 8779cbd1c9 - update go directive to 1.18 2024-04-07 03:05:22 +02:00
keccakf_amd64.s Apply upstream 8779cbd1c9 - update go directive to 1.18 2024-04-07 03:05:22 +02:00
register.go Apply upstream 8779cbd1c9 - update go directive to 1.18 2024-04-07 03:05:22 +02:00
sha3.go Apply upstream 3f0842a464 - have ShakeHash extend hash.Hash 2024-04-07 03:11:12 +02:00
sha3_s390x.go Apply upstream 3f0842a464 - have ShakeHash extend hash.Hash 2024-04-07 03:11:12 +02:00
sha3_s390x.s Apply upstream 8779cbd1c9 - update go directive to 1.18 2024-04-07 03:05:22 +02:00
sha3_test.go Experimental: allow analysis of xorIn inside Write to prevent heap escape of parameter p 2023-06-04 11:24:30 +02:00
shake.go Apply upstream 3f0842a464 - have ShakeHash extend hash.Hash 2024-04-07 03:11:12 +02:00
shake_generic.go Apply upstream 8779cbd1c9 - update go directive to 1.18 2024-04-07 03:05:22 +02:00
xor.go Apply upstream 8779cbd1c9 - update go directive to 1.18 2024-04-07 03:05:22 +02:00
xor_generic.go Export internal state 2023-05-12 08:42:07 +02:00
xor_unaligned.go Apply upstream 8779cbd1c9 - update go directive to 1.18 2024-04-07 03:05:22 +02:00

README.md

sha3

Exported version of golang.org/x/crypto/sha3 for better escape analysis and prevent Write/Read heap allocations.