summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2020-02-09 08:48:27 +0100
committerNiels Möller <nisse@lysator.liu.se>2020-02-09 09:52:45 +0100
commit9c04199d7faef69b63f7d53b9f1ef1c85e37a76e (patch)
tree2bfb5f5f13e282b0bf77ec1757a86c38ca6025d3 /testsuite
parent197ae827aaef311d7bd0514a9d5e0009816ae9b8 (diff)
downloadnettle-9c04199d7faef69b63f7d53b9f1ef1c85e37a76e.tar.gz
Add meta interface for CMAC functions.
Based on patches by Daiki Ueno. * testsuite/cmac-test.c (nettle_cmac_aes128, nettle_cmac_aes256): Moved to... * cmac-aes128-meta.c: New file. * cmac-aes256-meta.c: New file.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/cmac-test.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/testsuite/cmac-test.c b/testsuite/cmac-test.c
index 9d668277..1a2cd0e5 100644
--- a/testsuite/cmac-test.c
+++ b/testsuite/cmac-test.c
@@ -2,30 +2,6 @@
#include "nettle-internal.h"
#include "cmac.h"
-const struct nettle_mac nettle_cmac_aes128 =
-{
- "CMAC-AES128",
- sizeof(struct cmac_aes128_ctx),
- CMAC128_DIGEST_SIZE,
- AES128_KEY_SIZE,
-
- (nettle_set_key_func*) cmac_aes128_set_key,
- (nettle_hash_update_func*) cmac_aes128_update,
- (nettle_hash_digest_func*) cmac_aes128_digest
-};
-
-const struct nettle_mac nettle_cmac_aes256 =
-{
- "CMAC-AES256",
- sizeof(struct cmac_aes256_ctx),
- CMAC128_DIGEST_SIZE,
- AES256_KEY_SIZE,
-
- (nettle_set_key_func*) cmac_aes256_set_key,
- (nettle_hash_update_func*) cmac_aes256_update,
- (nettle_hash_digest_func*) cmac_aes256_digest
-};
-
const struct nettle_mac nettle_cmac_des3 =
{
"CMAC-3DES",