| ... | @@ -387,7 +387,7 @@ pub const XSalsa20Poly1305 = struct { | ... | @@ -387,7 +387,7 @@ pub const XSalsa20Poly1305 = struct { |
| 387 | /// session identifiers and sequence numbers. | 387 | /// session identifiers and sequence numbers. |
| 388 | /// | 388 | /// |
| 389 | /// Since there is no separation between the associated data and | 389 | /// Since there is no separation between the associated data and |
| 390 | /// the ciphertext, its length must not contain be under an adversary's | 390 | /// the ciphertext, its length must not be under an adversary's |
| 391 | /// control. | 391 | /// control. |
| 392 | pub fn encrypt(c: []u8, tag: *[tag_length]u8, m: []const u8, ad: []const u8, npub: [nonce_length]u8, k: [key_length]u8) void { | 392 | pub fn encrypt(c: []u8, tag: *[tag_length]u8, m: []const u8, ad: []const u8, npub: [nonce_length]u8, k: [key_length]u8) void { |
| 393 | debug.assert(c.len == m.len); | 393 | debug.assert(c.len == m.len); |