diff options
| author | Frank Denis <124872+jedisct1@users.noreply.github.com> | 2022-07-01 11:37:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-01 11:37:41 +0200 |
| commit | 48fd92365a93a06a57ae0270be5f2614804e5749 (patch) | |
| tree | 0f9c1fb8ecf0fe46d0729130e0bbb8a78e3bcf1d /lib/libcxx/src/typeinfo.cpp | |
| parent | 902dc8c721c762bc5d1b9786bad47b21da45042c (diff) | |
| download | zig-48fd92365a93a06a57ae0270be5f2614804e5749.tar.gz zig-48fd92365a93a06a57ae0270be5f2614804e5749.zip | |
std.crypto.hash: allow creating hash functions from compositions (#11965)
A hash function cascade was a common way to avoid length-extension
attacks with traditional hash functions such as the SHA-2 family.
Add `std.crypto.hash.composition` to do exactly that using arbitrary
hash functions, and pre-define the common SHA2-based ones.
With this, we can now sign and verify Bitcoin signatures in pure Zig.
Diffstat (limited to 'lib/libcxx/src/typeinfo.cpp')
0 files changed, 0 insertions, 0 deletions
