summaryrefslogtreecommitdiff
path: root/lib/mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mac.h')
-rw-r--r--lib/mac.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/mac.h b/lib/mac.h
index b6f3af52..a03e0546 100644
--- a/lib/mac.h
+++ b/lib/mac.h
@@ -12,6 +12,7 @@
#include "nest/bird.h"
#include "lib/sha512.h"
+#include "lib/blake2.h"
#define ALG_UNDEFINED 0
@@ -21,6 +22,10 @@
#define ALG_SHA256 0x04
#define ALG_SHA384 0x05
#define ALG_SHA512 0x06
+#define ALG_BLAKE2S_128 0x07
+#define ALG_BLAKE2S_256 0x08
+#define ALG_BLAKE2B_256 0x09
+#define ALG_BLAKE2B_512 0x0A
#define ALG_HMAC 0x10
#define ALG_HMAC_MD5 0x11
#define ALG_HMAC_SHA1 0x12
@@ -71,6 +76,8 @@ union mac_context_union {
struct mac_context mac;
struct nrmh_context nrmh;
struct hmac_context hmac;
+ struct blake2s_context blake2s;
+ struct blake2b_context blake2b;
};