| ... | @@ -269,7 +269,7 @@ pub const Aead = struct { | ... | @@ -269,7 +269,7 @@ pub const Aead = struct { |
| 269 | /// npub: public nonce | 269 | /// npub: public nonce |
| 270 | /// k: private key | 270 | /// k: private key |
| 271 | /// NOTE: the check of the authentication tag is currently not done in constant time | 271 | /// NOTE: the check of the authentication tag is currently not done in constant time |
| 272 | pub fn decrypt(m: []u8, c: []const u8, at: [State.RATE]u8, ad: []u8, npub: [16]u8, k: [32]u8) !void { | 272 | pub fn decrypt(m: []u8, c: []const u8, at: [State.RATE]u8, ad: []const u8, npub: [16]u8, k: [32]u8) !void { |
| 273 | assert(c.len == m.len); | 273 | assert(c.len == m.len); |
| 274 | | 274 | |
| 275 | var state = Aead.init(ad, npub, k); | 275 | var state = Aead.init(ad, npub, k); |