Skip to content

Commit

Permalink
fix(aegis_128l): only enable AD on std+test
Browse files Browse the repository at this point in the history
  • Loading branch information
codahale committed Oct 19, 2023
1 parent bdce5c0 commit 54c13d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aegis_128l.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl Aegis128L {
}

/// Process the given authenticated data.
#[cfg(test)]
#[cfg(all(test, feature = "std"))]
pub fn ad(&mut self, ad: &[u8]) {
// Process whole blocks of associated data.
let mut chunks = ad.chunks_exact(BLOCK_LEN);
Expand Down Expand Up @@ -166,7 +166,7 @@ impl Aegis128L {
tag
}

#[cfg(test)]
#[cfg(all(test, feature = "std"))]
fn absorb(&mut self, ai: &[u8]) {
// Load the input blocks.
let (ai0, xi1) = load_2x(ai);
Expand Down

0 comments on commit 54c13d5

Please sign in to comment.