Skip to content

Commit 2599be0

Browse files
committed
Change flag guards on 3DES implementation to use existing flag WP_HAVE_DES3CBC, thus enabling existing 3DES tests
1 parent 6ef6013 commit 2599be0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

include/wolfprovider/settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
#define WP_HAVE_AESCBC
8484
#endif
8585
#ifndef NO_DES3
86-
#define WP_HAVE_DES3
86+
#define WP_HAVE_DES3CBC
8787
#endif
8888
#ifdef WOLFSSL_AES_COUNTER
8989
#define WP_HAVE_AESCTR

src/wp_des.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include <wolfprovider/alg_funcs.h>
3131

3232

33-
#if defined(WP_HAVE_DES3)
33+
#if defined(WP_HAVE_DES3CBC)
3434

3535
/**
3636
* Data structure for DES3 ciphers that are block based.

src/wp_wolfprov.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ static const OSSL_ALGORITHM wolfprov_ciphers[] = {
482482
"" },
483483
#endif
484484

485-
#ifdef WP_HAVE_DES3
485+
#ifdef WP_HAVE_DES3CBC
486486
{ WP_NAMES_DES_EDE3_CBC, WOLFPROV_PROPERTIES, wp_des3cbc_functions,
487487
"" },
488488
#endif

0 commit comments

Comments
 (0)