Skip to content

Commit 1b16fe0

Browse files
authored
Fix typo regarding nonce size for chacha20poly1305 (#412)
1 parent e96343d commit 1b16fe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chacha20poly1305/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
//! let key = Key::from_slice(b"an example very very secret key.");
7676
//! let cipher = ChaCha20Poly1305::new(key);
7777
//!
78-
//! let nonce = Nonce::from_slice(b"unique nonce"); // 128-bits; unique per message
78+
//! let nonce = Nonce::from_slice(b"unique nonce"); // 96-bits; unique per message
7979
//!
8080
//! let mut buffer: Vec<u8, 128> = Vec::new();
8181
//! buffer.extend_from_slice(b"plaintext message");

0 commit comments

Comments
 (0)