Skip to content

Commit 4ef7ef0

Browse files
committed
linuxkm ecdh: small cleanup.
1 parent 380c361 commit 4ef7ef0

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

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/lkcapi_ecdh_glue.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ static int linuxkm_test_ecdh_nist_p192(void)
565565
int rc = 0;
566566
/* reference values from kernel crypto/testmgr.h */
567567
const byte secret[] = {
568-
#ifdef __LITTLE_ENDIAN
568+
#ifdef LITTLE_ENDIAN_ORDER
569569
0x02, 0x00, /* type */
570570
0x1e, 0x00, /* len */
571571
0x18, 0x00, /* key_size */
@@ -620,7 +620,7 @@ static int linuxkm_test_ecdh_nist_p256(void)
620620
int rc = 0;
621621
/* reference values from kernel crypto/testmgr.h */
622622
const byte secret[] = {
623-
#ifdef __LITTLE_ENDIAN
623+
#ifdef LITTLE_ENDIAN_ORDER
624624
0x02, 0x00, /* type */
625625
0x26, 0x00, /* len */
626626
0x20, 0x00, /* key_size */
@@ -679,7 +679,7 @@ static int linuxkm_test_ecdh_nist_p384(void)
679679
int rc = 0;
680680
/* reference values from kernel crypto/testmgr.h */
681681
const byte secret[] = {
682-
#ifdef __LITTLE_ENDIAN
682+
#ifdef LITTLE_ENDIAN_ORDER
683683
0x02, 0x00, /* type */
684684
0x36, 0x00, /* len */
685685
0x30, 0x00, /* key_size */

0 commit comments

Comments
 (0)