From eb97f2a50fef1ca28266a6e945d2e31aeeca34f4 Mon Sep 17 00:00:00 2001 From: Thomas Daubney Date: Thu, 1 Aug 2024 12:19:31 +0100 Subject: [PATCH] Make missed SHA internal functions static Signed-off-by: Thomas Daubney --- tf-psa-crypto/drivers/builtin/src/sha256.c | 4 ++-- tf-psa-crypto/drivers/builtin/src/sha512.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tf-psa-crypto/drivers/builtin/src/sha256.c b/tf-psa-crypto/drivers/builtin/src/sha256.c index aff626fb5b..95bcf69f23 100644 --- a/tf-psa-crypto/drivers/builtin/src/sha256.c +++ b/tf-psa-crypto/drivers/builtin/src/sha256.c @@ -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 { diff --git a/tf-psa-crypto/drivers/builtin/src/sha512.c b/tf-psa-crypto/drivers/builtin/src/sha512.c index c1d5e59991..27c7cf2a8a 100644 --- a/tf-psa-crypto/drivers/builtin/src/sha512.c +++ b/tf-psa-crypto/drivers/builtin/src/sha512.c @@ -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;