Commit 7db01094 authored by Paul Bakker's avatar Paul Bakker
Browse files

Made POLARSSL_MD_MAX_SIZE dependent on POLARSSL_SHA512_C

parent 003dbad2
......@@ -60,7 +60,11 @@ typedef enum {
POLARSSL_MD_SHA512,
} md_type_t;
#if defined(POLARSSL_SHA512_C)
#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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment