Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sha2/src/sha512/x86.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ use core::arch::x86_64::*;

use crate::consts::K64;

cpufeatures::new!(avx2_cpuid, "avx2");
// We need to check availability of both AVX and AVX2, see:
// https://github.com/RustCrypto/hashes/pull/386
cpufeatures::new!(avx2_cpuid, "avx", "avx2");

pub fn compress(state: &mut [u64; 8], blocks: &[[u8; 128]]) {
// TODO: Replace with https://github.com/rust-lang/rfcs/pull/2725
Expand Down