Page MenuHomeFreeBSD

ossl: add supprot for ARMv7
AbandonedPublic

Authored by markj on Nov 17 2022, 2:49 PM.
Tags
None
Referenced Files
F115794558: D37420.diff
Mon, Apr 28, 6:30 PM
Unknown Object (File)
Fri, Apr 25, 3:53 PM
Unknown Object (File)
Tue, Apr 8, 6:17 PM
Unknown Object (File)
Fri, Apr 4, 2:57 AM
Unknown Object (File)
Mar 29 2025, 4:28 AM
Unknown Object (File)
Mar 24 2025, 6:10 AM
Unknown Object (File)
Mar 23 2025, 8:22 PM
Unknown Object (File)
Feb 28 2025, 10:43 AM
Subscribers

Details

Reviewers
wma
mw
jhb
kd
andrew
Summary

This add support for all ciphers that ossl supports on armv7 architecture.
AES is supported only if it can be accelerated with NEON instructions.
AES-CBC handling required some special treatment.
The assembly logic supports only decryption and has some additional requires some additional scratch space.
To work around the block chaining for encryption is done in C.

Tested with cryptotest.py framework.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

mkoz_semihalf.com edited the summary of this revision. (Show Details)

remove bsaes-armv7.S changes

Add ossl device to GENERIC config

kd edited reviewers, added: mkoz_semihalf.com; removed: kd.
kd edited the summary of this revision. (Show Details)
kd edited the summary of this revision. (Show Details)
kd removed a reviewer: mkoz_semihalf.com.

The patch has been rewritten from scratch.
In order to build it D39091 has to be applied first.
Then the ossl armv7 assembly logic has to be regenerated - crypto/openssl/crypto/aes/asm/bsaes-armv7.pl > sys/crypto/openssl/arm/bsaes-armv7.S

markj added a reviewer: kd.