aboutsummaryrefslogtreecommitdiff
path: root/crypto/openssl/providers/implementations/macs/blake2_mac_impl.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl/providers/implementations/macs/blake2_mac_impl.c')
-rw-r--r--crypto/openssl/providers/implementations/macs/blake2_mac_impl.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/crypto/openssl/providers/implementations/macs/blake2_mac_impl.c b/crypto/openssl/providers/implementations/macs/blake2_mac_impl.c
index 2ca800fad9bc..a1ba00aa6475 100644
--- a/crypto/openssl/providers/implementations/macs/blake2_mac_impl.c
+++ b/crypto/openssl/providers/implementations/macs/blake2_mac_impl.c
@@ -88,7 +88,7 @@ static size_t blake2_mac_size(void *vmacctx)
}
static int blake2_setkey(struct blake2_mac_data_st *macctx,
- const unsigned char *key, size_t keylen)
+ const unsigned char *key, size_t keylen)
{
if (keylen > BLAKE2_KEYBYTES || keylen == 0) {
ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_KEY_LENGTH);
@@ -103,7 +103,7 @@ static int blake2_setkey(struct blake2_mac_data_st *macctx,
}
static int blake2_mac_init(void *vmacctx, const unsigned char *key,
- size_t keylen, const OSSL_PARAM params[])
+ size_t keylen, const OSSL_PARAM params[])
{
struct blake2_mac_data_st *macctx = vmacctx;
@@ -121,7 +121,7 @@ static int blake2_mac_init(void *vmacctx, const unsigned char *key,
}
static int blake2_mac_update(void *vmacctx,
- const unsigned char *data, size_t datalen)
+ const unsigned char *data, size_t datalen)
{
struct blake2_mac_data_st *macctx = vmacctx;
@@ -132,8 +132,8 @@ static int blake2_mac_update(void *vmacctx,
}
static int blake2_mac_final(void *vmacctx,
- unsigned char *out, size_t *outl,
- size_t outsize)
+ unsigned char *out, size_t *outl,
+ size_t outsize)
{
struct blake2_mac_data_st *macctx = vmacctx;
@@ -150,7 +150,7 @@ static const OSSL_PARAM known_gettable_ctx_params[] = {
OSSL_PARAM_END
};
static const OSSL_PARAM *blake2_gettable_ctx_params(ossl_unused void *ctx,
- ossl_unused void *provctx)
+ ossl_unused void *provctx)
{
return known_gettable_ctx_params;
}
@@ -160,11 +160,11 @@ static int blake2_get_ctx_params(void *vmacctx, OSSL_PARAM params[])
OSSL_PARAM *p;
if ((p = OSSL_PARAM_locate(params, OSSL_MAC_PARAM_SIZE)) != NULL
- && !OSSL_PARAM_set_size_t(p, blake2_mac_size(vmacctx)))
+ && !OSSL_PARAM_set_size_t(p, blake2_mac_size(vmacctx)))
return 0;
if ((p = OSSL_PARAM_locate(params, OSSL_MAC_PARAM_BLOCK_SIZE)) != NULL
- && !OSSL_PARAM_set_size_t(p, BLAKE2_BLOCKBYTES))
+ && !OSSL_PARAM_set_size_t(p, BLAKE2_BLOCKBYTES))
return 0;
return 1;
@@ -178,7 +178,7 @@ static const OSSL_PARAM known_settable_ctx_params[] = {
OSSL_PARAM_END
};
static const OSSL_PARAM *blake2_mac_settable_ctx_params(
- ossl_unused void *ctx, ossl_unused void *p_ctx)
+ ossl_unused void *ctx, ossl_unused void *p_ctx)
{
return known_settable_ctx_params;
}
@@ -207,7 +207,7 @@ static int blake2_mac_set_ctx_params(void *vmacctx, const OSSL_PARAM params[])
}
if ((p = OSSL_PARAM_locate_const(params, OSSL_MAC_PARAM_KEY)) != NULL
- && !blake2_setkey(macctx, p->data, p->data_size))
+ && !blake2_setkey(macctx, p->data, p->data_size))
return 0;
if ((p = OSSL_PARAM_locate_const(params, OSSL_MAC_PARAM_CUSTOM))
@@ -245,10 +245,10 @@ const OSSL_DISPATCH BLAKE2_FUNCTIONS[] = {
{ OSSL_FUNC_MAC_UPDATE, (void (*)(void))blake2_mac_update },
{ OSSL_FUNC_MAC_FINAL, (void (*)(void))blake2_mac_final },
{ OSSL_FUNC_MAC_GETTABLE_CTX_PARAMS,
- (void (*)(void))blake2_gettable_ctx_params },
+ (void (*)(void))blake2_gettable_ctx_params },
{ OSSL_FUNC_MAC_GET_CTX_PARAMS, (void (*)(void))blake2_get_ctx_params },
{ OSSL_FUNC_MAC_SETTABLE_CTX_PARAMS,
- (void (*)(void))blake2_mac_settable_ctx_params },
+ (void (*)(void))blake2_mac_settable_ctx_params },
{ OSSL_FUNC_MAC_SET_CTX_PARAMS, (void (*)(void))blake2_mac_set_ctx_params },
OSSL_DISPATCH_END
};