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)
Sun, Mar 17, 8:22 AM
Unknown Object (File)
Sun, Mar 17, 8:22 AM
Unknown Object (File)
Sun, Mar 17, 8:22 AM
Unknown Object (File)
Sun, Mar 17, 8:22 AM
Unknown Object (File)
Sun, Mar 17, 8:22 AM
Unknown Object (File)
Sun, Mar 17, 8:22 AM
Unknown Object (File)
Sun, Mar 17, 8:22 AM
Unknown Object (File)
Thu, Mar 14, 3:55 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