linuxkm ecdh: small cleanup.

pull/8663/head
jordan 2025-04-11 16:20:16 -04:00
parent 380c3613ed
commit 4ef7ef02d6
2 changed files with 4 additions and 3 deletions

View File

@ -15,4 +15,5 @@ EXTRA_DIST += m4/ax_linuxkm.m4 \
linuxkm/linuxkm_wc_port.h \
linuxkm/lkcapi_glue.c \
linuxkm/lkcapi_ecdsa_glue.c \
linuxkm/lkcapi_ecdh_glue.c \
linuxkm/x86_vector_register_glue.c

View File

@ -565,7 +565,7 @@ static int linuxkm_test_ecdh_nist_p192(void)
int rc = 0;
/* reference values from kernel crypto/testmgr.h */
const byte secret[] = {
#ifdef __LITTLE_ENDIAN
#ifdef LITTLE_ENDIAN_ORDER
0x02, 0x00, /* type */
0x1e, 0x00, /* len */
0x18, 0x00, /* key_size */
@ -620,7 +620,7 @@ static int linuxkm_test_ecdh_nist_p256(void)
int rc = 0;
/* reference values from kernel crypto/testmgr.h */
const byte secret[] = {
#ifdef __LITTLE_ENDIAN
#ifdef LITTLE_ENDIAN_ORDER
0x02, 0x00, /* type */
0x26, 0x00, /* len */
0x20, 0x00, /* key_size */
@ -679,7 +679,7 @@ static int linuxkm_test_ecdh_nist_p384(void)
int rc = 0;
/* reference values from kernel crypto/testmgr.h */
const byte secret[] = {
#ifdef __LITTLE_ENDIAN
#ifdef LITTLE_ENDIAN_ORDER
0x02, 0x00, /* type */
0x36, 0x00, /* len */
0x30, 0x00, /* key_size */