Skip to content

Commit

Permalink
Initial implementation of DES3 for wolfprovider
Browse files Browse the repository at this point in the history
  • Loading branch information
ColtonWilley committed Dec 18, 2024
1 parent a578b6f commit 6ef6013
Show file tree
Hide file tree
Showing 5 changed files with 884 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/wolfprovider/alg_funcs.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ typedef void (*DFUNC)(void);
#define WP_NAMES_AES_128_WRAP \
"AES-128-WRAP:id-aes128-wrap:AES128-WRAP:2.16.840.1.101.3.4.1.5"

#define WP_NAMES_DES_EDE3_CBC "DES-EDE3-CBC:DES3:1.2.840.113549.3.7"

/* Internal cipher flags. */
#define WP_CIPHER_FLAG_AEAD 0x0001
#define WP_CIPHER_FLAG_CUSTOM_IV 0x0002
Expand Down Expand Up @@ -277,6 +279,8 @@ extern const OSSL_DISPATCH wp_aes256wrap_functions[];
extern const OSSL_DISPATCH wp_aes192wrap_functions[];
extern const OSSL_DISPATCH wp_aes128wrap_functions[];

extern const OSSL_DISPATCH wp_des3cbc_functions[];

/* MAC implementations. */
extern const OSSL_DISPATCH wp_hmac_functions[];
extern const OSSL_DISPATCH wp_cmac_functions[];
Expand Down
3 changes: 3 additions & 0 deletions include/wolfprovider/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@
#ifndef NO_AES_CBC
#define WP_HAVE_AESCBC
#endif
#ifndef NO_DES3
#define WP_HAVE_DES3
#endif
#ifdef WOLFSSL_AES_COUNTER
#define WP_HAVE_AESCTR
#endif
Expand Down
1 change: 1 addition & 0 deletions src/include.am
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ libwolfprov_la_SOURCES += src/wp_aes_block.c
libwolfprov_la_SOURCES += src/wp_aes_stream.c
libwolfprov_la_SOURCES += src/wp_aes_aead.c
libwolfprov_la_SOURCES += src/wp_aes_wrap.c
libwolfprov_la_SOURCES += src/wp_des.c
libwolfprov_la_SOURCES += src/wp_hmac.c
libwolfprov_la_SOURCES += src/wp_cmac.c
libwolfprov_la_SOURCES += src/wp_gmac.c
Expand Down
Loading

0 comments on commit 6ef6013

Please sign in to comment.