summaryrefslogtreecommitdiffstats
path: root/providers/implementations/macs/kmac_prov.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2021-02-02 13:42:55 +0100
committerRichard Levitte <levitte@openssl.org>2021-02-03 17:17:53 +0100
commit8ce04db808dd1799a4051d938112b7d591fc5fc2 (patch)
tree384d5c514ad89f5568c70a0991d78e9f6d45d7ba /providers/implementations/macs/kmac_prov.c
parent28e1904250183c25faad1744fead96f205559270 (diff)
CORE & PROV: clean away OSSL_FUNC_mac_size()
There was a remaining function signature declaration, but no OSSL_DISPATCH number for it nor any way it's ever used. It did exist once, but was replaced with an OSSL_PARAM item to retrieve. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14048)
Diffstat (limited to 'providers/implementations/macs/kmac_prov.c')
-rw-r--r--providers/implementations/macs/kmac_prov.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/providers/implementations/macs/kmac_prov.c b/providers/implementations/macs/kmac_prov.c
index 940fe7eb3d..b9a6318e12 100644
--- a/providers/implementations/macs/kmac_prov.c
+++ b/providers/implementations/macs/kmac_prov.c
@@ -73,7 +73,6 @@ static OSSL_FUNC_mac_gettable_ctx_params_fn kmac_gettable_ctx_params;
static OSSL_FUNC_mac_get_ctx_params_fn kmac_get_ctx_params;
static OSSL_FUNC_mac_settable_ctx_params_fn kmac_settable_ctx_params;
static OSSL_FUNC_mac_set_ctx_params_fn kmac_set_ctx_params;
-static OSSL_FUNC_mac_size_fn kmac_size;
static OSSL_FUNC_mac_init_fn kmac_init;
static OSSL_FUNC_mac_update_fn kmac_update;
static OSSL_FUNC_mac_final_fn kmac_final;
@@ -235,6 +234,13 @@ static void *kmac_dup(void *vsrc)
return dst;
}
+static size_t kmac_size(void *vmacctx)
+{
+ struct kmac_data_st *kctx = vmacctx;
+
+ return kctx->out_len;
+}
+
/*
* The init() assumes that any ctrl methods are set beforehand for
* md, key and custom. Setting the fields afterwards will have no
@@ -278,13 +284,6 @@ static int kmac_init(void *vmacctx)
&& EVP_DigestUpdate(ctx, kctx->key, kctx->key_len);
}
-static size_t kmac_size(void *vmacctx)
-{
- struct kmac_data_st *kctx = vmacctx;
-
- return kctx->out_len;
-}
-
static int kmac_update(void *vmacctx, const unsigned char *data,
size_t datalen)
{