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
signature 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{...@@ -23,6 +23,7 @@ const hashes = [_]Crypto{
23 Crypto{ .ty = crypto.Sha512, .name = "sha512" },23 Crypto{ .ty = crypto.Sha512, .name = "sha512" },
24 Crypto{ .ty = crypto.Sha3_256, .name = "sha3-256" },24 Crypto{ .ty = crypto.Sha3_256, .name = "sha3-256" },
25 Crypto{ .ty = crypto.Sha3_512, .name = "sha3-512" },25 Crypto{ .ty = crypto.Sha3_512, .name = "sha3-512" },
26 Crypto{ .ty = crypto.gimli.Hash, .name = "gimli-hash" },
26 Crypto{ .ty = crypto.Blake2s256, .name = "blake2s" },27 Crypto{ .ty = crypto.Blake2s256, .name = "blake2s" },
27 Crypto{ .ty = crypto.Blake2b512, .name = "blake2b" },28 Crypto{ .ty = crypto.Blake2b512, .name = "blake2b" },
28 Crypto{ .ty = crypto.Blake3, .name = "blake3" },29 Crypto{ .ty = crypto.Blake3, .name = "blake3" },
lib/std/crypto/gimli.zig+2
...@@ -134,6 +134,8 @@ pub const Hash = struct {...@@ -134,6 +134,8 @@ pub const Hash = struct {
134 }134 }
135 }135 }
136136
137 pub const digest_length = 32;
138
137 /// Finish the current hashing operation, writing the hash to `out`139 /// Finish the current hashing operation, writing the hash to `out`
138 ///140 ///
139 /// From 4.9 "Application to hashing"141 /// From 4.9 "Application to hashing"