Page MenuHomeFreeBSD

crypto: Move CBC handling into enc_xform_camellia.
ClosedPublic

Authored by jhb on Dec 15 2021, 9:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 2 2024, 1:53 PM
Unknown Object (File)
Oct 2 2024, 11:43 AM
Unknown Object (File)
Oct 1 2024, 4:32 PM
Unknown Object (File)
Sep 29 2024, 6:27 PM
Unknown Object (File)
Sep 29 2024, 6:22 PM
Unknown Object (File)
Sep 29 2024, 4:25 PM
Unknown Object (File)
Sep 28 2024, 6:54 AM
Unknown Object (File)
Sep 27 2024, 12:40 PM
Subscribers

Details

Summary

Add an IV to the context that is initialized by the reinit hook.
Encrypt and decrypt operations handle cipher block chaining along with
updating the IV saved in the context.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 43397
Build 40285: arc lint + arc unit

Event Timeline

Do we have any good way to test this cipher? I think the GELI regression tests will exercise it at least, but not cryptocheck AFAIK.

sys/opencrypto/xform_cml.c
70

Need to update ctxsize.

129

Stray newline.

Hmmm, I should see if OpenSSL supports Camellia.

  • Fix bugs pointed out by Mark.
jhb marked 2 inline comments as done.Dec 16 2021, 7:56 PM

cryptocheck didn't catch the ctx size, probably because the extra 16 bytes were stuff on the stack that it didn't hurt to overwrite.

This revision is now accepted and ready to land.Dec 16 2021, 8:08 PM