Make missed SHA internal functions static

Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
Thomas Daubney 2024-08-01 12:19:31 +01:00
parent 38e64fbce0
commit eb97f2a50f
2 changed files with 4 additions and 4 deletions

View File

@ -414,7 +414,7 @@ static size_t mbedtls_internal_sha256_process_many_a64_crypto(
return processed;
}
int mbedtls_internal_sha256_process_a64_crypto(mbedtls_sha256_context *ctx,
static int mbedtls_internal_sha256_process_a64_crypto(mbedtls_sha256_context *ctx,
const unsigned char data[SHA256_BLOCK_SIZE])
{
return (mbedtls_internal_sha256_process_many_a64_crypto(ctx, data,
@ -467,7 +467,7 @@ int mbedtls_internal_sha256_process_a64_crypto(mbedtls_sha256_context *ctx,
(d) += local.temp1; (h) = local.temp1 + local.temp2; \
} while (0)
int mbedtls_internal_sha256_process_c(mbedtls_sha256_context *ctx,
static int mbedtls_internal_sha256_process_c(mbedtls_sha256_context *ctx,
const unsigned char data[SHA256_BLOCK_SIZE])
{
struct {

View File

@ -551,7 +551,7 @@ static size_t mbedtls_internal_sha512_process_many_a64_crypto(
return processed;
}
int mbedtls_internal_sha512_process_a64_crypto(mbedtls_sha512_context *ctx,
static int mbedtls_internal_sha512_process_a64_crypto(mbedtls_sha512_context *ctx,
const unsigned char data[SHA512_BLOCK_SIZE])
{
return (mbedtls_internal_sha512_process_many_a64_crypto(ctx, data,
@ -579,7 +579,7 @@ int mbedtls_internal_sha512_process_a64_crypto(mbedtls_sha512_context *ctx,
#if !defined(MBEDTLS_SHA512_USE_A64_CRYPTO_ONLY)
int mbedtls_internal_sha512_process_c(mbedtls_sha512_context *ctx,
static int mbedtls_internal_sha512_process_c(mbedtls_sha512_context *ctx,
const unsigned char data[SHA512_BLOCK_SIZE])
{
int i;