summaryrefslogtreecommitdiff
path: root/lib/mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mac.h')
-rw-r--r--lib/mac.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mac.h b/lib/mac.h
index a03e0546..99a56eed 100644
--- a/lib/mac.h
+++ b/lib/mac.h
@@ -94,6 +94,8 @@ struct mac_desc {
void (*hash_init)(struct hash_context *ctx);
void (*hash_update)(struct hash_context *ctx, const byte *data, uint datalen);
byte *(*hash_final)(struct hash_context *ctx);
+ uint min_key_length; /* Minimum allowed key length */
+ uint max_key_length; /* Maximum allowed key length */
};
extern const struct mac_desc mac_table[ALG_MAX];