Fixed SHA(384|512) not resetting SHA context
Former-commit-id: 0bfc4e206b7203a179bf18f6fa16c64fbbfbf169
This commit is contained in:
parent
a8066a58af
commit
5aeb9d63b8
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue