Commit 197ae827 authored by Niels Möller's avatar Niels Möller
Browse files

Move struct nettle_mac to nettle-meta.h.

parent ad710f48
2020-02-09 Niels Möller <nisse@lysator.liu.se>
* nettle-meta.h (struct nettle_mac): New public struct,
* testsuite/testutils.h: ...moved from this file.
2020-02-06 Niels Möller <nisse@lysator.liu.se>
From Dmitry Baryshkov:
......
......@@ -144,6 +144,24 @@ extern const struct nettle_hash nettle_sha3_256;
extern const struct nettle_hash nettle_sha3_384;
extern const struct nettle_hash nettle_sha3_512;
struct nettle_mac
{
const char *name;
/* Size of the context struct */
unsigned context_size;
/* Size of digests */
unsigned digest_size;
/* Key size */
unsigned key_size;
nettle_set_key_func *set_key;
nettle_hash_update_func *update;
nettle_hash_digest_func *digest;
};
struct nettle_aead
{
const char *name;
......
......@@ -79,25 +79,6 @@ test_main(void);
extern int verbose;
/* FIXME: When interface stabilizes, move to nettle-meta.h */
struct nettle_mac
{
const char *name;
/* Size of the context struct */
unsigned context_size;
/* Size of digests */
unsigned digest_size;
/* Suggested key size; other sizes are sometimes possible. */
unsigned key_size;
nettle_set_key_func *set_key;
nettle_hash_update_func *update;
nettle_hash_digest_func *digest;
};
#define _NETTLE_HMAC(name, NAME, keysize) { \
#name, \
sizeof(struct hmac_##name##_ctx), \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment