Page MenuHomeFreeBSD

security/openssl-devel: Fix detection of ARM CPU features

Authored by allanjude on Nov 19 2021, 6:38 PM.
Referenced Files
Unknown Object (File)
Apr 11 2023, 6:15 AM
Unknown Object (File)
Apr 11 2023, 6:13 AM
Unknown Object (File)
Apr 11 2023, 6:10 AM
Unknown Object (File)
Apr 10 2023, 7:33 PM
Unknown Object (File)
Mar 22 2023, 6:16 PM
Unknown Object (File)
Mar 10 2023, 11:27 AM
Unknown Object (File)
Mar 5 2023, 7:55 AM
Unknown Object (File)
Feb 22 2023, 7:07 PM



OpenSSL assumes the same value for AT_HWCAP at Linux
So it ends up calling elf_auxv_info() with AT_CANARY which
returns ENOENT, and all acceleration features are disabled.

With this, my ARM64 test machine, the benchmark
openssl speed -evp aes-256-gcm is nearly 20x faster
going from 100 MB/sec to 2000 MB/sec

Also update the configure scripts to detect arm64-*-freebsd
rather than using BSD-generic32

PR: 259937
Sponsored by: Klara Inc.

Diff Detail

R11 FreeBSD ports repository
Lint Not Applicable
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Nov 20 2021, 2:10 PM
This revision was automatically updated to reflect the committed changes.

Thanks! Committing to -devel as this is not considered for production.
Waiting for upstream to provide feedback on the changes before committing security/openssl.