Skip to content

Commit

Permalink
Merge pull request #8348 from SparkiDev/aarch64_cpuid_freebsd_fix
Browse files Browse the repository at this point in the history
Aarch64 CPU Id: FreeBSD/OpenBSD fix
  • Loading branch information
dgarske authored Jan 10, 2025
2 parents 5b07d41 + aa8a214 commit 197a7e0
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 197a7e0

Please sign in to comment.