| ... | ... | @@ -9,7 +9,6 @@ |
| 9 | 9 | //! - Ascon https://ascon.iaik.tugraz.at/files/asconv12-nist.pdf |
| 10 | 10 | |
| 11 | 11 | const std = @import("std"); |
| 12 | | const min = std.math.min; |
| 13 | 12 | const mem = std.mem; |
| 14 | 13 | const Random = std.rand.Random; |
| 15 | 14 | const Self = @This(); |
| ... | ... | @@ -50,7 +49,7 @@ pub fn fill(self: *Self, buf: []u8) void { |
| 50 | 49 | var i: usize = 0; |
| 51 | 50 | while (true) { |
| 52 | 51 | const left = buf.len - i; |
| 53 | | const n = min(left, rate); |
| 52 | const n = @min(left, rate); |
| 54 | 53 | self.state.extractBytes(buf[i..][0..n]); |
| 55 | 54 | if (left == 0) break; |
| 56 | 55 | self.state.permuteR(8); |