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)
Tue, Jul 9, 11:33 PM
Unknown Object (File)
Fri, Jul 5, 11:20 PM
Unknown Object (File)
Fri, Jul 5, 11:14 PM
Unknown Object (File)
Fri, Jul 5, 1:50 PM
Unknown Object (File)
Fri, Jul 5, 1:45 PM
Unknown Object (File)
Thu, Jun 27, 10:02 AM
Unknown Object (File)
Wed, Jun 26, 6:09 PM
Unknown Object (File)
Jun 23 2024, 6:05 AM
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