summaryrefslogtreecommitdiffstats
path: root/providers
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-11-16 12:14:26 +1000
committerPauli <paul.dale@oracle.com>2020-11-19 07:39:13 +1000
commitb68a947fd23a1e9189399cb9cc4ee75801bb142b (patch)
treefcebc6813e7b2a555f7e3189fdc892fd147b12ea /providers
parent5687afdf032ac1d0e92958c209f6c493c347fa25 (diff)
Rename SHA3 internal functions so they have an ossl_ prefix
These are: keccak_kmac_init(), sha3_final(), sha3_init(), sha3_reset() and sha3_update(). Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13417)
Diffstat (limited to 'providers')
-rw-r--r--providers/implementations/digests/sha3_prov.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/providers/implementations/digests/sha3_prov.c b/providers/implementations/digests/sha3_prov.c
index 38e2beb1e7..6b44792529 100644
--- a/providers/implementations/digests/sha3_prov.c
+++ b/providers/implementations/digests/sha3_prov.c
@@ -50,7 +50,7 @@ static int keccak_init(void *vctx)
if (!ossl_prov_is_running())
return 0;
/* The newctx() handles most of the ctx fixed setup. */
- sha3_reset((KECCAK1600_CTX *)vctx);
+ ossl_sha3_reset((KECCAK1600_CTX *)vctx);
return 1;
}
@@ -118,7 +118,7 @@ static size_t generic_sha3_absorb(void *vctx, const void *inp, size_t len)
static int generic_sha3_final(unsigned char *md, void *vctx)
{
- return sha3_final(md, (KECCAK1600_CTX *)vctx);
+ return ossl_sha3_final(md, (KECCAK1600_CTX *)vctx);
}
static PROV_SHA3_METHOD sha3_generic_md =
@@ -198,7 +198,7 @@ static void *name##_newctx(void *provctx) \
\
if (ctx == NULL) \
return NULL; \
- sha3_init(ctx, pad, bitlen); \
+ ossl_sha3_init(ctx, pad, bitlen); \
SHA3_SET_MD(uname, typ) \
return ctx; \
}
@@ -212,7 +212,7 @@ static void *uname##_newctx(void *provctx) \
\
if (ctx == NULL) \
return NULL; \
- keccak_kmac_init(ctx, pad, bitlen); \
+ ossl_keccak_kmac_init(ctx, pad, bitlen); \
ctx->meth = sha3_generic_md; \
return ctx; \
}