Skip to content

Commit

Permalink
chacha20_poly1305_openssh: Document panic in seal_in_place.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Jan 16, 2025
1 parent 53adab1 commit 4f65d89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/aead/chacha20_poly1305_openssh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ impl SealingKey {
/// `padding_length||payload||random padding`. It will be overwritten by
/// `encrypted_packet_length||ciphertext`, where `encrypted_packet_length`
/// is encrypted with `K_1` and `ciphertext` is encrypted by `K_2`.
///
/// # Panics
///
/// Panics if `plaintext_in_ciphertext_out.len() < PACKET_LENGTH_LEN`.
pub fn seal_in_place(
&self,
sequence_number: u32,
Expand Down

0 comments on commit 4f65d89

Please sign in to comment.