authorgravatar for luke.champine@gmail.comlukechampine <luke.champine@gmail.com> 2019-11-06 20:39:41-05:00
committergravatar for luke.champine@gmail.comlukechampine <luke.champine@gmail.com> 2019-12-30 13:35:16-05:00
logd1a570a4b83ef1e795e19a4186e9255de6b1535f
tree85c4357ab74864755f249e437216bce13a02f555
parentd6ca2323cf7f544836b1ab2d318d5286c4ca0e62
signature Commit is signed but in an unrecognized format.

chacha: Fix open docstring


1 files changed, 1 insertions(+), 1 deletions(-)

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