Page MenuHomeFreeBSD

ossl: add supprot for ARMv7
Needs ReviewPublic

Authored by kd on Nov 17 2022, 2:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 11, 11:51 PM
Unknown Object (File)
Mon, Nov 11, 5:16 PM
Unknown Object (File)
Thu, Oct 24, 10:50 PM
Unknown Object (File)
Oct 4 2024, 7:02 PM
Unknown Object (File)
Oct 4 2024, 7:25 AM
Unknown Object (File)
Oct 3 2024, 8:06 PM
Unknown Object (File)
Oct 2 2024, 5:50 AM
Unknown Object (File)
Oct 1 2024, 3:27 PM
Subscribers

Details

Reviewers
wma
mw
jhb
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