]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add AES-CCM encryption, and plumb into OCF.
authorsef <sef@FreeBSD.org>
Fri, 15 Feb 2019 03:53:03 +0000 (03:53 +0000)
committersef <sef@FreeBSD.org>
Fri, 15 Feb 2019 03:53:03 +0000 (03:53 +0000)
commit1c55bdab4d4cfc79a08ec574db33d234756af120
tree7bc47ed51418664e1c9e65616448828984961416
parente1cdc83e7d2dc357acb912b5fea8bb73a99dd584
Add AES-CCM encryption, and plumb into OCF.

This commit essentially has three parts:

* Add the AES-CCM encryption hooks.  This is in and of itself fairly small,
as there is only a small difference between CCM and the other ICM-based
algorithms.
* Hook the code into the OpenCrypto framework.  This is the bulk of the
changes, as the algorithm type has to be checked for, and the differences
between it and GCM dealt with.
* Update the cryptocheck tool to be aware of it.  This is invaluable for
confirming that the code works.

This is a software-only implementation, meaning that the performance is very
low.

Sponsored by: iXsystems Inc.
Differential Revision: https://reviews.freebsd.org/D19090
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_enc.h
tools/tools/crypto/cryptocheck.c