diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2020-02-09 20:13:04 +0300 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2020-03-08 20:09:28 +0100 |
commit | a986fa71015e84dc627a5ed1dcefe622d75b16f2 (patch) | |
tree | 287b695de960e48cf64e88c9a6d9fb360f3f166e /testsuite | |
parent | 388a567942400aec3cf1dd50ec147d41ffb7e627 (diff) | |
download | nettle-a986fa71015e84dc627a5ed1dcefe622d75b16f2.tar.gz |
cmac-des3: add meta declaration to Nettle library
Move cmac-des3 meta information from testsuite/cmac-test.c to main
Nettle library.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/cmac-test.c | 12 | ||||
-rw-r--r-- | testsuite/meta-mac-test.c | 1 |
2 files changed, 1 insertions, 12 deletions
diff --git a/testsuite/cmac-test.c b/testsuite/cmac-test.c index 1a2cd0e5..a71baa08 100644 --- a/testsuite/cmac-test.c +++ b/testsuite/cmac-test.c @@ -2,18 +2,6 @@ #include "nettle-internal.h" #include "cmac.h" -const struct nettle_mac nettle_cmac_des3 = -{ - "CMAC-3DES", - sizeof(struct cmac_des3_ctx), - CMAC64_DIGEST_SIZE, - DES3_KEY_SIZE, - - (nettle_set_key_func*) cmac_des3_set_key, - (nettle_hash_update_func*) cmac_des3_update, - (nettle_hash_digest_func*) cmac_des3_digest -}; - #define test_cmac_aes128(key, msg, ref) \ test_mac(&nettle_cmac_aes128, key, msg, ref) diff --git a/testsuite/meta-mac-test.c b/testsuite/meta-mac-test.c index 32b6f20f..55339441 100644 --- a/testsuite/meta-mac-test.c +++ b/testsuite/meta-mac-test.c @@ -4,6 +4,7 @@ const char* macs[] = { "cmac_aes128", "cmac_aes256", + "cmac_des3", "hmac_md5", "hmac_ripemd160", "hmac_sha1", |