diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2018-09-21 22:10:03 +0300 |
---|---|---|
committer | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2020-06-07 00:58:59 +0300 |
commit | 1da75337cc400c779e3fb09e4911d48008c5c205 (patch) | |
tree | 3102528ec4a2625aaac7dd7bbe33e222e9124499 /lib/nettle/mac.c | |
parent | 13cf683708c3a8c32914d486f800b8a55b3d5a7c (diff) | |
download | gnutls-1da75337cc400c779e3fb09e4911d48008c5c205.tar.gz |
nettle/gost: add CMAC-64/Magma/Kuznyechik code
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'lib/nettle/mac.c')
-rw-r--r-- | lib/nettle/mac.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/nettle/mac.c b/lib/nettle/mac.c index 4e14a9475b..e2ba0cb4d6 100644 --- a/lib/nettle/mac.c +++ b/lib/nettle/mac.c @@ -34,6 +34,14 @@ #include <nettle/umac.h> #include <nettle/hkdf.h> #include <nettle/pbkdf2.h> +#ifdef HAVE_NETTLE_CMAC128_UPDATE +#include <nettle/cmac.h> +#ifndef HAVE_NETTLE_CMAC64_UPDATE +#include "cmac64.h" +#endif /* HAVE_NETTLE_CMAC64_UPDATE */ +#else +#include "cmac.h" +#endif /* HAVE_NETTLE_CMAC128_UPDATE */ #if ENABLE_GOST #include "gost/hmac-gost.h" #ifndef HAVE_NETTLE_GOSTHASH94CP_UPDATE @@ -45,12 +53,8 @@ #ifndef HAVE_NETTLE_GOST28147_SET_KEY #include "gost/gost28147.h" #endif +#include "gost/cmac.h" #endif -#ifdef HAVE_NETTLE_CMAC128_UPDATE -#include <nettle/cmac.h> -#else -#include "cmac.h" -#endif /* HAVE_NETTLE_CMAC128_UPDATE */ #include <nettle/gcm.h> typedef void (*update_func) (void *, size_t, const uint8_t *); |