mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-07 06:42:56 +03:00
Made POLARSSL_MD_MAX_SIZE dependent on POLARSSL_SHA512_C
This commit is contained in:
@@ -60,7 +60,11 @@ typedef enum {
|
|||||||
POLARSSL_MD_SHA512,
|
POLARSSL_MD_SHA512,
|
||||||
} md_type_t;
|
} md_type_t;
|
||||||
|
|
||||||
|
#if defined(POLARSSL_SHA512_C)
|
||||||
#define POLARSSL_MD_MAX_SIZE 64 /* longest known is SHA512 */
|
#define POLARSSL_MD_MAX_SIZE 64 /* longest known is SHA512 */
|
||||||
|
#else
|
||||||
|
#define POLARSSL_MD_MAX_SIZE 32 /* longest known is SHA256 or less */
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Message digest information. Allows message digest functions to be called
|
* Message digest information. Allows message digest functions to be called
|
||||||
|
Reference in New Issue
Block a user