fix(ci): Memcmp not constant time on apple sillicon, stopgap

https://github.com/rosenpass/rosenpass/issues/634
This commit is contained in:
Karolin Varner
2025-04-09 00:07:24 +02:00
parent 03464e1be7
commit abd5210ae4

View File

@@ -32,6 +32,8 @@ pub fn memcmp(a: &[u8], b: &[u8]) -> bool {
/// For discussion on how to (further) ensure the constant-time execution of this function,
/// see <https://github.com/rosenpass/rosenpass/issues/232>
#[cfg(all(test, feature = "constant_time_tests"))]
// Stopgap measure against https://github.com/rosenpass/rosenpass/issues/634
#[cfg(not(all(target_os = "macos", target_arch = "aarch64")))]
mod tests {
use super::*;
use core::hint::black_box;