authorgravatar for mantas@jonytis.euMantas Jonytis <mantas@jonytis.eu> 2020-08-01 16:05:20+03:00
committergravatar for mantas@jonytis.euMantas Jonytis <mantas@jonytis.eu> 2020-08-01 16:05:20+03:00
log36ed4623a8355cd06be84e015142d81ae4429e4f
tree8ef6faa7226dd2f6d3291628001b74397c99fad7
parent42dd737c9e23292464f368889d7301bc82c3e648

make blake2 public


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/crypto/blake2.zig+2-2
...@@ -31,7 +31,7 @@ fn Rp(a: usize, b: usize, c: usize, d: usize, x: usize, y: usize) RoundParam {...@@ -31,7 +31,7 @@ fn Rp(a: usize, b: usize, c: usize, d: usize, x: usize, y: usize) RoundParam {
31pub const Blake2s224 = Blake2s(224);31pub const Blake2s224 = Blake2s(224);
32pub const Blake2s256 = Blake2s(256);32pub const Blake2s256 = Blake2s(256);
3333
34fn Blake2s(comptime out_len: usize) type {34pub fn Blake2s(comptime out_len: usize) type {
35 return struct {35 return struct {
36 const Self = @This();36 const Self = @This();
37 pub const block_length = 64;37 pub const block_length = 64;
...@@ -320,7 +320,7 @@ test "comptime blake2s256" {...@@ -320,7 +320,7 @@ test "comptime blake2s256" {
320pub const Blake2b384 = Blake2b(384);320pub const Blake2b384 = Blake2b(384);
321pub const Blake2b512 = Blake2b(512);321pub const Blake2b512 = Blake2b(512);
322322
323fn Blake2b(comptime out_len: usize) type {323pub fn Blake2b(comptime out_len: usize) type {
324 return struct {324 return struct {
325 const Self = @This();325 const Self = @This();
326 pub const block_length = 128;326 pub const block_length = 128;