Frank Denis
48fd92365a
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.
2022-07-01 11:37:41 +02:00
..
2022-06-29 07:44:43 +02:00
2022-05-25 19:23:49 +02:00
2022-06-29 15:11:33 +02:00
2021-08-24 12:25:09 -07:00
2021-10-04 23:48:55 -07:00
2021-10-04 23:48:55 -07:00
2022-01-28 16:23:47 -07:00
2022-06-20 15:11:22 +03:00
2022-06-20 15:11:22 +03:00
2022-04-24 23:01:06 -04:00
2021-11-20 01:37:17 -08:00
2022-06-03 20:21:20 +03:00
2022-03-30 14:12:14 -04:00
2022-07-01 11:37:41 +02:00
2021-04-20 19:57:27 +02:00
2022-03-30 14:12:14 -04:00
2022-03-30 14:12:14 -04:00
2022-07-01 11:37:41 +02:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-05-08 15:15:30 +03:00
2021-08-24 12:25:09 -07:00
2021-10-04 23:48:55 -07:00
2021-08-24 12:25:09 -07:00
2022-06-20 15:11:22 +03:00
2021-08-24 12:25:09 -07:00
2022-03-30 14:12:14 -04:00
2022-06-20 15:11:22 +03:00
2021-11-20 01:37:17 -08:00
2021-11-20 01:37:17 -08:00
2022-06-03 20:21:20 +03:00
2022-05-16 22:31:09 -04:00
2021-08-24 12:25:09 -07:00
2021-12-19 00:24:45 -05:00
2022-03-30 14:12:14 -04:00