Skip to content

Commit 4ae057e

Browse files
authored
Merge pull request #8663 from philljj/register_ecdh
linuxkm: register ecdh.
2 parents 9106d12 + 4ef7ef0 commit 4ae057e

5 files changed

Lines changed: 898 additions & 0 deletions

File tree

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9401,6 +9401,7 @@ then
94019401
'ecb(aes)') AM_CFLAGS="$AM_CFLAGS -DLINUXKM_LKCAPI_REGISTER_AESECB -DHAVE_AES_ECB" ;;
94029402
'ecdsa') test "$ENABLED_ECC" != "no" || AC_MSG_ERROR([linuxkm-lkcapi-register ${lkcapi_alg}: ECDSA implementation not enabled.])
94039403
AM_CFLAGS="$AM_CFLAGS -DLINUXKM_LKCAPI_REGISTER_ECDSA" ;;
9404+
'ecdh') AM_CFLAGS="$AM_CFLAGS -DLINUXKM_LKCAPI_REGISTER_ECDH" ;;
94049405
# disable options
94059406
'-cbc(aes)') AM_CFLAGS="$AM_CFLAGS -DLINUXKM_LKCAPI_DONT_REGISTER_AESCBC" ;;
94069407
'-cfb(aes)') AM_CFLAGS="$AM_CFLAGS -DLINUXKM_LKCAPI_DONT_REGISTER_AESCFB" ;;
@@ -9412,6 +9413,7 @@ then
94129413
'-ofb(aes)') AM_CFLAGS="$AM_CFLAGS -DLINUXKM_LKCAPI_DONT_REGISTER_AESOFB" ;;
94139414
'-ecb(aes)') AM_CFLAGS="$AM_CFLAGS -DLINUXKM_LKCAPI_DONT_REGISTER_AESECB" ;;
94149415
'-ecdsa') AM_CFLAGS="$AM_CFLAGS -DLINUXKM_LKCAPI_DONT_REGISTER_ECDSA" ;;
9416+
'-ecdh') AM_CFLAGS="$AM_CFLAGS -DLINUXKM_LKCAPI_DONT_REGISTER_ECDH" ;;
94159417
*) AC_MSG_ERROR([Unsupported LKCAPI algorithm "$lkcapi_alg".]) ;;
94169418
esac
94179419
done

linuxkm/include.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ EXTRA_DIST += m4/ax_linuxkm.m4 \
1515
linuxkm/linuxkm_wc_port.h \
1616
linuxkm/lkcapi_glue.c \
1717
linuxkm/lkcapi_ecdsa_glue.c \
18+
linuxkm/lkcapi_ecdh_glue.c \
1819
linuxkm/x86_vector_register_glue.c

linuxkm/linuxkm_wc_port.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@
294294
#include <crypto/scatterwalk.h>
295295
#include <crypto/internal/aead.h>
296296
#include <crypto/internal/skcipher.h>
297+
#include <crypto/internal/kpp.h>
297298

298299
#if defined(HAVE_ECC) && \
299300
(defined(LINUXKM_LKCAPI_REGISTER_ALL) || \

0 commit comments

Comments
 (0)