authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-02-02 15:27:20+11:00
committergravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-02-06 00:16:00+11:00
logb495512175b9b96fe0792680dc8716f0ec1936af
treef57b203a14d6f5d7a0ca118b6aee30c7ea7369fe
parent5a095a3f083f5e2248b0d37bf499c350ad18179f
signaturelock-open Commit is signed but in an unrecognized format.

add gimli to crypto hash benchmark


2 files changed, 3 insertions(+), 0 deletions(-)

lib/std/crypto/benchmark.zig+1
......@@ -23,6 +23,7 @@ const hashes = [_]Crypto{
2323 Crypto{ .ty = crypto.Sha512, .name = "sha512" },
2424 Crypto{ .ty = crypto.Sha3_256, .name = "sha3-256" },
2525 Crypto{ .ty = crypto.Sha3_512, .name = "sha3-512" },
26 Crypto{ .ty = crypto.gimli.Hash, .name = "gimli-hash" },
2627 Crypto{ .ty = crypto.Blake2s256, .name = "blake2s" },
2728 Crypto{ .ty = crypto.Blake2b512, .name = "blake2b" },
2829 Crypto{ .ty = crypto.Blake3, .name = "blake3" },
lib/std/crypto/gimli.zig+2
......@@ -134,6 +134,8 @@ pub const Hash = struct {
134134 }
135135 }
136136
137 pub const digest_length = 32;
138
137139 /// Finish the current hashing operation, writing the hash to `out`
138140 ///
139141 /// From 4.9 "Application to hashing"