]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r344140,r344141,r344142,r344143,r344388,r344547
authorSean Eric Fagan <sef@FreeBSD.org>
Thu, 14 Mar 2019 02:46:03 +0000 (02:46 +0000)
committerSean Eric Fagan <sef@FreeBSD.org>
Thu, 14 Mar 2019 02:46:03 +0000 (02:46 +0000)
commit7f4deb98366ee78d84c76a310f48b59cb53f0bee
tree44c27401f349da746e24ebec472318837d311fe4
parent9d708a1e154278eb9d525782476f5f368e6c4918
MFC r344140,r344141,r344142,r344143,r344388,r344547

r344140:
Add CBC-MAC authentication.

r344141:
Add AES-CCM encryption, and plumb into OCF.

r344142:
Pasting in a source control line missed the last quote.  Fixed.

r344143:
Fix another issue from r344141, having to do with size of a shift amount.
This did not show up in my testing.

r344388:
It turns out that setting the IV length is necessary with CCM in OpenSSL.
This adds that back.

r344547:
Fix another bug introduced during the review process of r344140:
the tag wasn't being computed properly due to chaning a >= comparison
to an == comparison.
12 files changed:
sys/conf/files
sys/modules/crypto/Makefile
sys/opencrypto/cbc_mac.c [new file with mode: 0644]
sys/opencrypto/cbc_mac.h [new file with mode: 0644]
sys/opencrypto/cryptodev.c
sys/opencrypto/cryptodev.h
sys/opencrypto/cryptosoft.c
sys/opencrypto/xform_aes_icm.c
sys/opencrypto/xform_auth.h
sys/opencrypto/xform_cbc_mac.c [new file with mode: 0644]
sys/opencrypto/xform_enc.h
tools/tools/crypto/cryptocheck.c