| ... | ... | @@ -469,7 +469,7 @@ pub fn chacha20poly1305Seal(dst: []u8, plaintext: []const u8, data: []const u8, |
| 469 | 469 | mac.final(dst[plaintext.len..]); |
| 470 | 470 | } |
| 471 | 471 | |
| 472 | | /// Verifies and decrypts an authenticated message produced by chacha20poly1305Open. |
| 472 | /// Verifies and decrypts an authenticated message produced by chacha20poly1305Seal. |
| 473 | 473 | pub fn chacha20poly1305Open(dst: []u8, ciphertext: []const u8, data: []const u8, key: [32]u8, nonce: [12]u8) !void { |
| 474 | 474 | if (ciphertext.len < chacha20poly1305_tag_size) { |
| 475 | 475 | return error.InvalidMessage; |