mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-24 06:02:44 +00:00
Fix code stlye
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
eb97f2a50f
commit
15129195a6
@ -415,7 +415,7 @@ static size_t mbedtls_internal_sha256_process_many_a64_crypto(
|
|||||||
}
|
}
|
||||||
|
|
||||||
static 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])
|
const unsigned char data[SHA256_BLOCK_SIZE])
|
||||||
{
|
{
|
||||||
return (mbedtls_internal_sha256_process_many_a64_crypto(ctx, data,
|
return (mbedtls_internal_sha256_process_many_a64_crypto(ctx, data,
|
||||||
SHA256_BLOCK_SIZE) ==
|
SHA256_BLOCK_SIZE) ==
|
||||||
@ -468,7 +468,7 @@ static int mbedtls_internal_sha256_process_a64_crypto(mbedtls_sha256_context *ct
|
|||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
static 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])
|
const unsigned char data[SHA256_BLOCK_SIZE])
|
||||||
{
|
{
|
||||||
struct {
|
struct {
|
||||||
uint32_t temp1, temp2, W[64];
|
uint32_t temp1, temp2, W[64];
|
||||||
@ -600,7 +600,7 @@ static size_t mbedtls_internal_sha256_process_many(mbedtls_sha256_context *ctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int mbedtls_internal_sha256_process(mbedtls_sha256_context *ctx,
|
static int mbedtls_internal_sha256_process(mbedtls_sha256_context *ctx,
|
||||||
const unsigned char data[SHA256_BLOCK_SIZE])
|
const unsigned char data[SHA256_BLOCK_SIZE])
|
||||||
{
|
{
|
||||||
if (mbedtls_a64_crypto_sha256_has_support()) {
|
if (mbedtls_a64_crypto_sha256_has_support()) {
|
||||||
return mbedtls_internal_sha256_process_a64_crypto(ctx, data);
|
return mbedtls_internal_sha256_process_a64_crypto(ctx, data);
|
||||||
|
@ -552,7 +552,7 @@ static size_t mbedtls_internal_sha512_process_many_a64_crypto(
|
|||||||
}
|
}
|
||||||
|
|
||||||
static 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])
|
const unsigned char data[SHA512_BLOCK_SIZE])
|
||||||
{
|
{
|
||||||
return (mbedtls_internal_sha512_process_many_a64_crypto(ctx, data,
|
return (mbedtls_internal_sha512_process_many_a64_crypto(ctx, data,
|
||||||
SHA512_BLOCK_SIZE) ==
|
SHA512_BLOCK_SIZE) ==
|
||||||
@ -580,7 +580,7 @@ static int mbedtls_internal_sha512_process_a64_crypto(mbedtls_sha512_context *ct
|
|||||||
#if !defined(MBEDTLS_SHA512_USE_A64_CRYPTO_ONLY)
|
#if !defined(MBEDTLS_SHA512_USE_A64_CRYPTO_ONLY)
|
||||||
|
|
||||||
static 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])
|
const unsigned char data[SHA512_BLOCK_SIZE])
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
struct {
|
struct {
|
||||||
@ -719,7 +719,7 @@ static size_t mbedtls_internal_sha512_process_many(mbedtls_sha512_context *ctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int mbedtls_internal_sha512_process(mbedtls_sha512_context *ctx,
|
static int mbedtls_internal_sha512_process(mbedtls_sha512_context *ctx,
|
||||||
const unsigned char data[SHA512_BLOCK_SIZE])
|
const unsigned char data[SHA512_BLOCK_SIZE])
|
||||||
{
|
{
|
||||||
if (mbedtls_a64_crypto_sha512_has_support()) {
|
if (mbedtls_a64_crypto_sha512_has_support()) {
|
||||||
return mbedtls_internal_sha512_process_a64_crypto(ctx, data);
|
return mbedtls_internal_sha512_process_a64_crypto(ctx, data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user