Skip to content

Commit

Permalink
chore: code comment encryption (#4720)
Browse files Browse the repository at this point in the history
* chore: add code comment for encryption default nonce

* lint fix

---------

Co-authored-by: Rahul Patni <[email protected]>
  • Loading branch information
jowparks and patnir authored Feb 13, 2024
1 parent 5f3598c commit 2d90d90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ironfish-rust/src/serializing/aead.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ use chacha20poly1305::{ChaCha20Poly1305, Key, Nonce};

pub const MAC_SIZE: usize = 16;

/// IMPORTANT: This method should only be used with unique keys as the nonce is zeroed!
///
/// Encrypt the plaintext using the given key, and append the MAC tag to the
/// end of the output array to be decrypted and checked in one step below.
///
Expand Down

0 comments on commit 2d90d90

Please sign in to comment.