Page MenuHomeFreeBSD

opencrypto: Integrate Chacha20 algorithm into OCF
AbandonedPublic

Authored by cem on Mar 17 2018, 5:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 26, 12:51 AM
Unknown Object (File)
Sun, Oct 26, 12:51 AM
Unknown Object (File)
Sun, Oct 26, 12:51 AM
Unknown Object (File)
Sun, Oct 26, 12:51 AM
Unknown Object (File)
Sat, Oct 25, 6:25 PM
Unknown Object (File)
Wed, Oct 15, 3:34 AM
Unknown Object (File)
Tue, Oct 14, 1:04 PM
Unknown Object (File)
Oct 8 2025, 11:05 PM
Subscribers
None

Details

Reviewers
jhb
markj
des
Summary

Mostly this is a thin shim around existing code to integrate with
enc_xform and cryptosoft (+ cryptodev).

Note that for correctness, the enc_xform specifies an API blocksize of 1
byte. This is correct, but inefficient because our cryptosoft device
passes a single block at a time to algorithms. I intend to extend the
xform API a little bit here to enable saner chunking in future work.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 15620
Build 15656: arc lint + arc unit

Event Timeline

Fix logic error in key size validation and improve CRYPTDEBUG() while here.

Fix IV size and passthrough to underlying implementation. With this change,
cryptocheck (with added chacha20 mode, linked aginst openssl-devel 1.1 from
ports) passes.