Skip to content

Commit

Permalink
testing ci
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikbhargavan committed May 16, 2024
1 parent c1a0b78 commit da32d55
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions libcrux-ml-kem/src/ind_cca.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,9 @@ pub(crate) fn validate_public_key<
>(
public_key: &[u8; PUBLIC_KEY_SIZE],
) -> bool {
/* Testing CI TODO UNDO*/
false
}

/*
if cfg!(feature = "simd256")
&& cfg!(target_arch = "x86_64")
&& libcrux_platform::simd256_support()
// && libcrux_platform::simd256_support()
{
#[cfg(all(feature = "simd256", target_arch = "x86_64"))]
return validate_public_key_generic::<
Expand All @@ -77,7 +72,7 @@ pub(crate) fn validate_public_key<
>(public_key)
} else if cfg!(feature = "simd128")
&& cfg!(target_arch = "aarch64")
&& libcrux_platform::simd128_support()
// && libcrux_platform::simd128_support()
{
#[cfg(all(feature = "simd128", target_arch = "aarch64"))]
return validate_public_key_generic::<
Expand Down Expand Up @@ -141,7 +136,7 @@ pub(crate) fn generate_keypair<
// Runtime feature detection.
if cfg!(feature = "simd256")
&& cfg!(target_arch = "x86_64")
&& libcrux_platform::simd256_support()
// && libcrux_platform::simd256_support()
{
#[cfg(all(feature = "simd256", target_arch = "x86_64"))]
return generate_keypair_generic::<
Expand Down Expand Up @@ -169,7 +164,7 @@ pub(crate) fn generate_keypair<
>(ind_cpa_keypair_randomness, implicit_rejection_value)
} else if cfg!(feature = "simd128")
&& cfg!(target_arch = "aarch64")
&& libcrux_platform::simd128_support()
// && libcrux_platform::simd128_support()
{
#[cfg(all(feature = "simd128", target_arch = "aarch64"))]
return generate_keypair_generic::<
Expand Down Expand Up @@ -266,7 +261,7 @@ pub(crate) fn encapsulate<
) -> (MlKemCiphertext<CIPHERTEXT_SIZE>, MlKemSharedSecret) {
if cfg!(feature = "simd256")
&& cfg!(target_arch = "x86_64")
&& libcrux_platform::simd256_support()
// && libcrux_platform::simd256_support()
{
#[cfg(all(feature = "simd256", target_arch = "x86_64"))]
return encapsulate_generic::<
Expand Down Expand Up @@ -306,7 +301,7 @@ pub(crate) fn encapsulate<
>(public_key, randomness)
} else if cfg!(feature = "simd128")
&& cfg!(target_arch = "aarch64")
&& libcrux_platform::simd128_support()
// && libcrux_platform::simd128_support()
{
#[cfg(not(feature = "simd128"))]
return encapsulate_generic::<
Expand Down Expand Up @@ -435,7 +430,7 @@ pub(crate) fn decapsulate<
) -> MlKemSharedSecret {
if cfg!(feature = "simd256")
&& cfg!(target_arch = "x86_64")
&& libcrux_platform::simd256_support()
// && libcrux_platform::simd256_support()
{
#[cfg(all(feature = "simd256", target_arch = "x86_64"))]
return decapsulate_generic::<
Expand Down Expand Up @@ -481,7 +476,7 @@ pub(crate) fn decapsulate<
>(private_key, ciphertext);
} else if cfg!(feature = "simd128")
&& cfg!(target_arch = "aarch64")
&& libcrux_platform::simd128_support()
// && libcrux_platform::simd128_support()
{
#[cfg(all(feature = "simd128", target_arch = "aarch64"))]
return decapsulate_generic::<
Expand Down

0 comments on commit da32d55

Please sign in to comment.