Update hash & crypto benchmarks run comment (#9790)

* sync function arguments name with other same functions
This commit is contained in:
Ali Chraghi 2021-09-20 10:33:18 +04:30 committed by GitHub
parent cfd5b81850
commit db181b173f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
// zig run benchmark.zig --release-fast --zig-lib-dir .. // zig run -O ReleaseFast --zig-lib-dir ../.. benchmark.zig
const std = @import("../std.zig"); const std = @import("../std.zig");
const builtin = std.builtin; const builtin = std.builtin;

View File

@ -398,10 +398,10 @@ pub const Blake3 = struct {
return Blake3.init_internal(context_key_words, DERIVE_KEY_MATERIAL); return Blake3.init_internal(context_key_words, DERIVE_KEY_MATERIAL);
} }
pub fn hash(in: []const u8, out: []u8, options: Options) void { pub fn hash(b: []const u8, out: []u8, options: Options) void {
var hasher = Blake3.init(options); var d = Blake3.init(options);
hasher.update(in); d.update(b);
hasher.final(out); d.final(out);
} }
fn pushCv(self: *Blake3, cv: [8]u32) void { fn pushCv(self: *Blake3, cv: [8]u32) void {

View File

@ -1,4 +1,4 @@
// zig run benchmark.zig --release-fast --zig-lib-dir .. // zig run -O ReleaseFast --zig-lib-dir ../.. benchmark.zig
const builtin = std.builtin; const builtin = std.builtin;
const std = @import("std"); const std = @import("std");