Page MenuHomeFreeBSD

ossl: add supprot for ARMv7
AbandonedPublic

Authored by markj on Nov 17 2022, 2:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 5, 6:39 PM
Unknown Object (File)
Tue, Dec 31, 12:12 AM
Unknown Object (File)
Dec 21 2024, 11:17 AM
Unknown Object (File)
Dec 12 2024, 9:12 PM
Unknown Object (File)
Nov 24 2024, 11:05 AM
Unknown Object (File)
Nov 23 2024, 1:00 PM
Unknown Object (File)
Nov 22 2024, 8:04 AM
Unknown Object (File)
Nov 15 2024, 3:59 PM
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.