| ... | ... | @@ -250,7 +250,7 @@ pub const Hash = struct { |
| 250 | 250 | /// By default, Gimli-Hash provides a fixed-length output of 32 bytes |
| 251 | 251 | /// (the concatenation of two 16-byte blocks). However, Gimli-Hash can |
| 252 | 252 | /// be used as an “extendable one-way function” (XOF). |
| 253 | | pub fn final(self: *Self, out: *[digest_length]u8) void { |
| 253 | pub fn final(self: *Self, out: []u8) void { |
| 254 | 254 | const buf = self.state.toSlice(); |
| 255 | 255 | |
| 256 | 256 | // XOR 1 into the next byte of the state |
| ... | ... | @@ -262,7 +262,7 @@ pub const Hash = struct { |
| 262 | 262 | } |
| 263 | 263 | }; |
| 264 | 264 | |
| 265 | | pub fn hash(out: *[Hash.digest_length]u8, in: []const u8, options: Hash.Options) void { |
| 265 | pub fn hash(out: []u8, in: []const u8, options: Hash.Options) void { |
| 266 | 266 | var st = Hash.init(options); |
| 267 | 267 | st.update(in); |
| 268 | 268 | st.final(out); |