diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mac.c | 2 | ||||
-rw-r--r-- | lib/mac.h | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -173,7 +173,7 @@ hmac_final(struct mac_context *ctx) { \ name, size/8, sizeof(struct vx##_context), \ vx##_mac_init, vx##_mac_update, vx##_mac_final, \ - size/8, VX##_BLOCK_SIZE, NULL, NULL, NULL \ + size/8, VX##_BLOCK_SIZE, NULL, NULL, NULL, 0, VX##_SIZE \ } const struct mac_desc mac_table[ALG_MAX] = { @@ -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]; |