Page MenuHomeFreeBSD

opencrypto: Add mechanism to pass multiple crypto blocks to some ciphers
AbandonedPublic

Authored by cem on Mar 17 2018, 6:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 6 2024, 7:44 AM
Unknown Object (File)
Jan 3 2024, 9:45 PM
Unknown Object (File)
Dec 31 2023, 10:48 PM
Unknown Object (File)
Oct 13 2023, 11:00 AM
Unknown Object (File)
Sep 22 2023, 9:29 PM
Unknown Object (File)
Aug 2 2023, 8:42 PM
Unknown Object (File)
Jul 28 2023, 5:20 PM
Unknown Object (File)
Jun 7 2023, 3:08 PM
Subscribers
None

Details

Reviewers
jhb
markj
jmg
Summary

xforms that support processing of multiple blocks at a time (to support
more efficient modes, for example) can define the encrypt_ and
decrypt_multi interfaces. If these interfaces are not present, the
generic cryptosoft code falls back on the block-at-a-time
encrypt/decrypt interfaces.

Stream ciphers may support arbitrarily sized inputs (equivalent to an
input block size of 1 byte) but may be more efficient if a larger block
is passed. Expand the larger buffer used to match that of Chacha20's
native block size and enhance the cryptosoft logic to use such APIs when
an xform defines them.

Test Plan

Will attempt to run cryptotest/cryptocheck, cryptotest.py.

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 15613
Build 15649: arc lint + arc unit