Skip to content

Commit

Permalink
Aarch64 CPU Id: FreeBSD/OpenBSD fix
Browse files Browse the repository at this point in the history
Fix name and flags set.
  • Loading branch information
SparkiDev committed Jan 9, 2025
1 parent 5b07d41 commit aa8a214
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wolfcrypt/src/cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,10 @@

if (features & CPUID_AARCH64_FEAT_AES)
cpuid_flags |= CPUID_AES;
if (features & CPUID_AARCH64_FEAT_PMULL)
if (features & CPUID_AARCH64_FEAT_AES_PMULL) {
cpuid_flags |= CPUID_AES;
cpuid_flags |= CPUID_PMULL;
}
if (features & CPUID_AARCH64_FEAT_SHA256)
cpuid_flags |= CPUID_SHA256;
if (features & CPUID_AARCH64_FEAT_SHA256_512)
Expand Down

0 comments on commit aa8a214

Please sign in to comment.