Skip to content

Commit 444f905

Browse files
Rust wrapper: document XChaCha20Poly1305 encrypt_in_place_detached maximum buffer length
1 parent 5d9439c commit 444f905

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

wrapper/rust/wolfssl-wolfcrypt/src/chacha20_poly1305.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ impl aead::KeyInit for XChaCha20Poly1305Aead {
459459

460460
#[cfg(all(xchacha20_poly1305, feature = "aead"))]
461461
impl aead::AeadInPlace for XChaCha20Poly1305Aead {
462+
// This function can encrypt a maximum of 4096 bytes.
462463
fn encrypt_in_place_detached(
463464
&self,
464465
nonce: &aead::Nonce<Self>,

0 commit comments

Comments
 (0)