[test suite] restore digest length calculation for AFL fuzzing, fixes #148

This commit is contained in:
Michael Rash
2015-03-19 23:45:22 -04:00
parent 67fefd67ae
commit 56e2e5ca2f
-6
View File
@@ -124,12 +124,6 @@ verify_digest(char *tbuf, int t_size, fko_ctx_t ctx)
static int
is_valid_digest_len(int t_size, fko_ctx_t ctx)
{
#if AFL_FUZZING
ctx->digest_type = FKO_DIGEST_SHA256;
ctx->digest_len = t_size;
return FKO_SUCCESS;
#endif
switch(t_size)
{
case MD5_B64_LEN: