Page MenuHomeFreeBSD

Support AEAD requests with non-GCM algorithms.
ClosedPublic

Authored by jhb on Jul 27 2017, 9:50 PM.
Tags
None
Referenced Files
F173559842: D11759.id33296.diff
Sat, Sep 26, 8:41 PM
Unknown Object (File)
Wed, Sep 23, 3:33 AM
Unknown Object (File)
Tue, Sep 22, 6:09 PM
Unknown Object (File)
Tue, Sep 22, 6:05 PM
Unknown Object (File)
Tue, Sep 22, 3:47 PM
Unknown Object (File)
Sun, Sep 20, 11:17 PM
Unknown Object (File)
Mon, Sep 14, 2:05 PM
Unknown Object (File)
Mon, Sep 14, 2:02 PM

Details

Summary

Support AEAD requests with non-GCM algorithms.

In particular, support chaining an AES cipher with an HMAC for a request
including AAD. This permits submitting requests from userland to encrypt
objects like IPSec packets or TLS frames using these algorithms.

In the non-GCM case, the authentication crypto descriptor covers both the
AAD and the ciphertext. The GCM case remains unchanged. This matches
the requests created internally in IPSec. For the non-GCM case, the
COP_F_CIPHER_FIRST is also supported since the ordering matters.

Test Plan
  • using the cryptocheck tool referenced before to submit chained requests combining AES-CBC, AES-CTR, and AES-XTS with SHA HMACs on both ccr and cryptosoft.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable