Skip to content

Commit 10645de

Browse files
committed
linuxkm: various tweaks:
* configure.ac: in linuxkm-lkcapi-register section, force ENABLED_AESGCM_STREAM=yes if ENABLED_AESGCM is yes and there is asm or FIPS in the picture. * linuxkm/module_hooks.c: in updateFipsHash(), if DEBUG_LINUXKM_PIE_SUPPORT || WOLFSSL_LINUXKM_VERBOSE_DEBUG, print the base16 hash to the kernel log. * linuxkm/lkcapi_glue.c: * implement KATs for AES-CBC, AES-CFB, and AES-GCM. * clean out extraneous code and macro usage inherited from test/test.c. * add post-registration crypto_tfm_alg_driver_name() tests for AES-CBC, AES-CFB, and AES-GCM.
1 parent e1ee5e4 commit 10645de

3 files changed

Lines changed: 347 additions & 345 deletions

File tree

configure.ac

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8042,6 +8042,11 @@ AC_ARG_ENABLE([linuxkm-lkcapi-register],
80428042
if test "$ENABLED_LINUXKM_LKCAPI_REGISTER" != "none"
80438043
then
80448044
AM_CFLAGS="$AM_CFLAGS -DLINUXKM_LKCAPI_REGISTER"
8045+
8046+
if test "$ENABLED_AESGCM" != "no" && test "$ENABLED_AESGCM_STREAM" = "no" && test "$ENABLED_AESNI" = "no" && test "$ENABLED_ARMASM" = "no" && test "$ENABLED_FIPS" = "no"; then
8047+
ENABLED_AESGCM_STREAM=yes
8048+
fi
8049+
80458050
for lkcapi_alg in $(echo "$ENABLED_LINUXKM_LKCAPI_REGISTER" | tr ',' ' ')
80468051
do
80478052
case "$lkcapi_alg" in

0 commit comments

Comments
 (0)