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)
Sat, Apr 27, 1:13 AM
Unknown Object (File)
Sat, Apr 27, 1:13 AM
Unknown Object (File)
Sat, Apr 27, 1:12 AM
Unknown Object (File)
Sat, Apr 27, 1:12 AM
Unknown Object (File)
Fri, Apr 26, 11:18 PM
Unknown Object (File)
Dec 20 2023, 4:36 AM
Unknown Object (File)
Nov 12 2023, 12:14 PM
Unknown Object (File)
Nov 6 2023, 12:39 AM
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.