mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
sha256.h: add guard for is224 in sha256 context
Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
@ -53,8 +53,10 @@ typedef struct mbedtls_sha256_context {
|
|||||||
unsigned char MBEDTLS_PRIVATE(buffer)[64]; /*!< The data block being processed. */
|
unsigned char MBEDTLS_PRIVATE(buffer)[64]; /*!< The data block being processed. */
|
||||||
uint32_t MBEDTLS_PRIVATE(total)[2]; /*!< The number of Bytes processed. */
|
uint32_t MBEDTLS_PRIVATE(total)[2]; /*!< The number of Bytes processed. */
|
||||||
uint32_t MBEDTLS_PRIVATE(state)[8]; /*!< The intermediate digest state. */
|
uint32_t MBEDTLS_PRIVATE(state)[8]; /*!< The intermediate digest state. */
|
||||||
|
#if defined(MBEDTLS_SHA224_C)
|
||||||
int MBEDTLS_PRIVATE(is224); /*!< Determines which function to use:
|
int MBEDTLS_PRIVATE(is224); /*!< Determines which function to use:
|
||||||
0: Use SHA-256, or 1: Use SHA-224. */
|
0: Use SHA-256, or 1: Use SHA-224. */
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
mbedtls_sha256_context;
|
mbedtls_sha256_context;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user