Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions include/wolfprovider/alg_funcs.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ typedef void (*DFUNC)(void);

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

#define WP_NAMES_CHACHA20_POLY1305 "ChaCha20-Poly1305"

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

extern const OSSL_DISPATCH wp_des3cbc_functions[];

extern const OSSL_DISPATCH wp_chacha20_poly1305_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 @@ -161,6 +161,9 @@
#ifdef HAVE_ED448
#define WP_HAVE_ED448
#endif
#if defined(HAVE_CHACHA) && defined(HAVE_POLY1305)
#define WP_HAVE_CHACHAPOLY
#endif
#ifndef WP_NO_FORCE_FAIL
#define WP_CHECK_FORCE_FAIL
#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_chachapoly_aead.c
libwolfprov_la_SOURCES += src/wp_des.c
libwolfprov_la_SOURCES += src/wp_hmac.c
libwolfprov_la_SOURCES += src/wp_cmac.c
Expand Down
Loading
Loading