mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-30 00:46:22 -04:00
Remove MBEDTLS_SHA256_ALT
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
30c7701a1d
commit
027535c8a5
@ -750,8 +750,8 @@
|
|||||||
#if !defined(MBEDTLS_SHA256_C)
|
#if !defined(MBEDTLS_SHA256_C)
|
||||||
#error "MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_* defined without MBEDTLS_SHA256_C"
|
#error "MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_* defined without MBEDTLS_SHA256_C"
|
||||||
#endif
|
#endif
|
||||||
#if defined(MBEDTLS_SHA256_ALT) || defined(MBEDTLS_SHA256_PROCESS_ALT)
|
#if defined(MBEDTLS_SHA256_PROCESS_ALT)
|
||||||
#error "MBEDTLS_SHA256_*ALT can't be used with MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_*"
|
#error "MBEDTLS_SHA256_PROCESS_ALT can't be used with MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_*"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -352,7 +352,6 @@
|
|||||||
|
|
||||||
//#define MBEDTLS_CMAC_ALT
|
//#define MBEDTLS_CMAC_ALT
|
||||||
//#define MBEDTLS_MD5_ALT
|
//#define MBEDTLS_MD5_ALT
|
||||||
//#define MBEDTLS_SHA256_ALT
|
|
||||||
//#define MBEDTLS_SHA512_ALT
|
//#define MBEDTLS_SHA512_ALT
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
/* sha256_alt.h with dummy types for MBEDTLS_SHA256_ALT */
|
|
||||||
/*
|
|
||||||
* Copyright The Mbed TLS Contributors
|
|
||||||
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef SHA256_ALT_H
|
|
||||||
#define SHA256_ALT_H
|
|
||||||
|
|
||||||
typedef struct mbedtls_sha256_context {
|
|
||||||
int dummy;
|
|
||||||
}
|
|
||||||
mbedtls_sha256_context;
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* sha256_alt.h */
|
|
@ -26,10 +26,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(MBEDTLS_SHA256_ALT)
|
|
||||||
// Regular implementation
|
|
||||||
//
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief The SHA-256 context structure.
|
* \brief The SHA-256 context structure.
|
||||||
*
|
*
|
||||||
@ -48,10 +44,6 @@ typedef struct mbedtls_sha256_context {
|
|||||||
}
|
}
|
||||||
mbedtls_sha256_context;
|
mbedtls_sha256_context;
|
||||||
|
|
||||||
#else /* MBEDTLS_SHA256_ALT */
|
|
||||||
#include "sha256_alt.h"
|
|
||||||
#endif /* MBEDTLS_SHA256_ALT */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief This function initializes a SHA-256 context.
|
* \brief This function initializes a SHA-256 context.
|
||||||
*
|
*
|
||||||
|
@ -216,8 +216,6 @@ static int mbedtls_a64_crypto_sha256_determine_support(void)
|
|||||||
|
|
||||||
#endif /* MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_IF_PRESENT */
|
#endif /* MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_IF_PRESENT */
|
||||||
|
|
||||||
#if !defined(MBEDTLS_SHA256_ALT)
|
|
||||||
|
|
||||||
#define SHA256_BLOCK_SIZE 64
|
#define SHA256_BLOCK_SIZE 64
|
||||||
|
|
||||||
void mbedtls_sha256_init(mbedtls_sha256_context *ctx)
|
void mbedtls_sha256_init(mbedtls_sha256_context *ctx)
|
||||||
@ -763,8 +761,6 @@ exit:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !MBEDTLS_SHA256_ALT */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* output = SHA-256( input buffer )
|
* output = SHA-256( input buffer )
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user