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)
Sat, Sep 28, 6:54 AM
Unknown Object (File)
Fri, Sep 27, 12:40 PM
Unknown Object (File)
Fri, Sep 27, 8:13 AM
Unknown Object (File)
Sun, Sep 22, 2:53 PM
Unknown Object (File)
Thu, Sep 19, 1:13 AM
Unknown Object (File)
Wed, Sep 18, 7:00 PM
Unknown Object (File)
Tue, Sep 17, 1:34 PM
Unknown Object (File)
Tue, Sep 10, 2:27 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 43427
Build 40315: 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