mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
add gimli to crypto hash benchmark
This commit is contained in:
parent
5a095a3f08
commit
b495512175
@ -23,6 +23,7 @@ const hashes = [_]Crypto{
|
|||||||
Crypto{ .ty = crypto.Sha512, .name = "sha512" },
|
Crypto{ .ty = crypto.Sha512, .name = "sha512" },
|
||||||
Crypto{ .ty = crypto.Sha3_256, .name = "sha3-256" },
|
Crypto{ .ty = crypto.Sha3_256, .name = "sha3-256" },
|
||||||
Crypto{ .ty = crypto.Sha3_512, .name = "sha3-512" },
|
Crypto{ .ty = crypto.Sha3_512, .name = "sha3-512" },
|
||||||
|
Crypto{ .ty = crypto.gimli.Hash, .name = "gimli-hash" },
|
||||||
Crypto{ .ty = crypto.Blake2s256, .name = "blake2s" },
|
Crypto{ .ty = crypto.Blake2s256, .name = "blake2s" },
|
||||||
Crypto{ .ty = crypto.Blake2b512, .name = "blake2b" },
|
Crypto{ .ty = crypto.Blake2b512, .name = "blake2b" },
|
||||||
Crypto{ .ty = crypto.Blake3, .name = "blake3" },
|
Crypto{ .ty = crypto.Blake3, .name = "blake3" },
|
||||||
|
@ -134,6 +134,8 @@ pub const Hash = struct {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub const digest_length = 32;
|
||||||
|
|
||||||
/// Finish the current hashing operation, writing the hash to `out`
|
/// Finish the current hashing operation, writing the hash to `out`
|
||||||
///
|
///
|
||||||
/// From 4.9 "Application to hashing"
|
/// From 4.9 "Application to hashing"
|
||||||
|
Loading…
Reference in New Issue
Block a user