Skip to content

Commit

Permalink
Feature gate SIMD hash functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jschneider-bensch committed Sep 30, 2024
1 parent 0010e94 commit 899dabd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libcrux-ml-dsa/src/hash_functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ pub(crate) mod portable {
}

/// A SIMD256 implementation of [`shake128::XofX4`] and [`shake256::Xof`] for AVX2.
#[cfg(feature = "simd256")]
pub(crate) mod simd256 {

use libcrux_sha3::{
Expand Down Expand Up @@ -437,6 +438,7 @@ pub(crate) mod simd256 {
}

/// A SIMD256 implementation of [`shake128::Xof`] and [`shake256::Xof`] for Neon.
#[cfg(feature = "simd128")]
pub(crate) mod neon {

use libcrux_sha3::neon::x2::{self, incremental::KeccakState};
Expand Down

0 comments on commit 899dabd

Please sign in to comment.