aboutsummaryrefslogtreecommitdiff
path: root/crypto/hmac-nettle.c
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2021-05-14 13:04:07 +0100
committerThomas Huth <thuth@redhat.com>2021-06-02 07:04:55 +0200
commit115e4b70037ddf6014efa4ffcd01e7fa3497a741 (patch)
treebab3ce77c2fbebc47e55353830db6362ffb0c9de /crypto/hmac-nettle.c
parent20ba7a4a34bc96fb53ce1fb837d280339c6f5671 (diff)
crypto: drop back compatibility typedefs for nettle
Now that we only support modern nettle, we don't need to have local typedefs to mask the real nettle types. Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20210514120415.1368922-5-berrange@redhat.com> Reviewed-by: Willian Rampazzo <willianr@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'crypto/hmac-nettle.c')
-rw-r--r--crypto/hmac-nettle.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/crypto/hmac-nettle.c b/crypto/hmac-nettle.c
index da6b6fa014..1ad6c4f253 100644
--- a/crypto/hmac-nettle.c
+++ b/crypto/hmac-nettle.c
@@ -18,18 +18,16 @@
#include "hmacpriv.h"
#include <nettle/hmac.h>
-typedef size_t hmac_length_t;
-
typedef void (*qcrypto_nettle_hmac_setkey)(void *ctx,
- hmac_length_t key_length,
+ size_t key_length,
const uint8_t *key);
typedef void (*qcrypto_nettle_hmac_update)(void *ctx,
- hmac_length_t length,
+ size_t length,
const uint8_t *data);
typedef void (*qcrypto_nettle_hmac_digest)(void *ctx,
- hmac_length_t length,
+ size_t length,
uint8_t *digest);
typedef struct QCryptoHmacNettle QCryptoHmacNettle;