mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-10 07:36:28 -04:00
Made POLARSSL_MD_MAX_SIZE dependent on POLARSSL_SHA512_C
This commit is contained in:
parent
003dbad250
commit
7db0109436
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user