diff options
author | Simo Sorce <simo@redhat.com> | 2018-10-26 13:22:23 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2018-10-28 19:40:26 -0400 |
commit | e369b069428ca5e0393598acfbd00e950e905963 (patch) | |
tree | e510fae7f4dd497dd22a1dfac7f160df1a2bfa4c /lib/algorithms | |
parent | 60e4138e97731ccea98d864b949ca740e53a5b30 (diff) | |
download | gnutls-e369b069428ca5e0393598acfbd00e950e905963.tar.gz |
Add CMAC Support
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'lib/algorithms')
-rw-r--r-- | lib/algorithms/mac.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/algorithms/mac.c b/lib/algorithms/mac.c index 6573b35686..d027ca5ea4 100644 --- a/lib/algorithms/mac.c +++ b/lib/algorithms/mac.c @@ -153,6 +153,14 @@ static const mac_entry_st hash_algorithms[] = { .output_size = 64, .key_size = 64, .block_size = 64}, + {.name = "AES-CMAC-128", + .id = GNUTLS_MAC_AES_CMAC_128, + .output_size = 16, + .key_size = 16,}, + {.name = "AES-CMAC-256", + .id = GNUTLS_MAC_AES_CMAC_256, + .output_size = 16, + .key_size = 32}, {.name = "MAC-NULL", .id = GNUTLS_MAC_NULL}, {0, 0, 0, 0, 0, 0, 0, 0, 0} |