Fixed SHA(384|512) not resetting SHA context

Former-commit-id: 0bfc4e206b7203a179bf18f6fa16c64fbbfbf169
This commit is contained in:
Lynix 2013-05-03 02:52:07 +02:00
parent a8066a58af
commit 5aeb9d63b8
1 changed files with 2 additions and 2 deletions

View File

@ -1032,7 +1032,7 @@ void SHA512_End(SHA_CTX* context, nzUInt8* digest)
}
/* Zero out state data */
std::memset(context, 0, sizeof(context));
std::memset(context, 0, sizeof(SHA_CTX));
}
@ -1072,5 +1072,5 @@ void SHA384_End(SHA_CTX* context, nzUInt8* digest)
}
/* Zero out state data */
std::memset(context, 0, sizeof(context));
std::memset(context, 0, sizeof(SHA_CTX));
}