Commit graph

7 commits

Author SHA1 Message Date
DataHoarder 2cb3a24eaa
Apply upstream 3f0842a464 - have ShakeHash extend hash.Hash
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
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
DataHoarder acc91aa781
Apply upstream 8779cbd1c9 - update go directive to 1.18 2024-04-07 03:05:22 +02:00
DataHoarder 912c838d27
Apply upstream bda2f3f5cf - naming issue 2024-04-07 03:00:43 +02:00
DataHoarder 89d3715a1d
Enable Drone CI
All checks were successful
continuous-integration/drone/push Build is passing
2024-04-07 02:56:43 +02:00
DataHoarder 04fe7dc643
Experimental: allow analysis of xorIn inside Write to prevent heap escape of parameter p 2023-06-04 11:24:30 +02:00
DataHoarder dde79576dc
Export internal state 2023-05-12 08:42:07 +02:00
DataHoarder 7ddddb3a08
Initial commit as of a4e984136a63c90def42a9336ac6507c2f6a896d 2023-05-12 08:31:31 +02:00