mirror of
https://github.com/ziglang/zig.git
synced 2026-02-17 06:49:23 +00:00
chacha: Fix open docstring
This commit is contained in:
parent
d6ca2323cf
commit
d1a570a4b8
@ -469,7 +469,7 @@ pub fn chacha20poly1305Seal(dst: []u8, plaintext: []const u8, data: []const u8,
|
||||
mac.final(dst[plaintext.len..]);
|
||||
}
|
||||
|
||||
/// Verifies and decrypts an authenticated message produced by chacha20poly1305Open.
|
||||
/// Verifies and decrypts an authenticated message produced by chacha20poly1305Seal.
|
||||
pub fn chacha20poly1305Open(dst: []u8, ciphertext: []const u8, data: []const u8, key: [32]u8, nonce: [12]u8) !void {
|
||||
if (ciphertext.len < chacha20poly1305_tag_size) {
|
||||
return error.InvalidMessage;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user