fix scan build for fastmath, dtls, ecc, psk, sha512

This commit is contained in:
toddouska
2013-02-19 12:53:58 -08:00
parent 7e29b8d2a6
commit 07baa27b20
5 changed files with 45 additions and 13 deletions

View File

@@ -103,7 +103,11 @@ int PBKDF2(byte* output, const byte* passwd, int pLen, const byte* salt,
int hLen;
int j;
Hmac hmac;
byte buffer[INNER_HASH_SIZE]; /* max size */
#ifdef CYASSL_SHA512
byte buffer[SHA512_DIGEST_SIZE];
#else
byte buffer[INNER_HASH_SIZE]; /* max size, doesn't handle 512 yet */
#endif
if (hashType == MD5) {
hLen = MD5_DIGEST_SIZE;