-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force miri to use the fallback algorithm.
- Loading branch information
1 parent
7681a46
commit ca2f390
Showing
3 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,10 +50,10 @@ fn count_same_bytes_and_nibbles(a: u64, b: u64) -> (i32, i32) { | |
} | ||
|
||
fn test_keys_change_output<T: Hasher>(constructor: impl Fn(u64, u64) -> T) { | ||
let mut a = constructor(0, 0); | ||
let mut b = constructor(0, 1); | ||
let mut c = constructor(1, 0); | ||
let mut d = constructor(1, 1); | ||
let mut a = constructor(1, 1); | ||
let mut b = constructor(1, 2); | ||
let mut c = constructor(2, 1); | ||
let mut d = constructor(2, 2); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
tkaitchuck
Author
Owner
|
||
"test".hash(&mut a); | ||
"test".hash(&mut b); | ||
"test".hash(&mut c); | ||
|
@@ -263,7 +263,7 @@ mod fallback_tests { | |
} | ||
|
||
///Basic sanity tests of the cypto properties of aHash. | ||
#[cfg(all(any(target_arch = "x86", target_arch = "x86_64"), target_feature = "aes"))] | ||
#[cfg(all(any(target_arch = "x86", target_arch = "x86_64"), target_feature = "aes", not(miri)))] | ||
#[cfg(test)] | ||
mod aes_tests { | ||
use crate::aes_hash::*; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
These changes seem unrelated?