| ... | @@ -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 { |
| 31 | pub const Blake2s224 = Blake2s(224); | 31 | pub const Blake2s224 = Blake2s(224); |
| 32 | pub const Blake2s256 = Blake2s(256); | 32 | pub const Blake2s256 = Blake2s(256); |
| 33 | | 33 | |
| 34 | fn Blake2s(comptime out_len: usize) type { | 34 | pub 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" { |
| 320 | pub const Blake2b384 = Blake2b(384); | 320 | pub const Blake2b384 = Blake2b(384); |
| 321 | pub const Blake2b512 = Blake2b(512); | 321 | pub const Blake2b512 = Blake2b(512); |
| 322 | | 322 | |
| 323 | fn Blake2b(comptime out_len: usize) type { | 323 | pub 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; |