Fixed SHA(384|512) not resetting SHA context
Former-commit-id: 0bfc4e206b7203a179bf18f6fa16c64fbbfbf169
This commit is contained in:
@@ -1032,7 +1032,7 @@ void SHA512_End(SHA_CTX* context, nzUInt8* digest)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Zero out state data */
|
/* 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 */
|
/* Zero out state data */
|
||||||
std::memset(context, 0, sizeof(context));
|
std::memset(context, 0, sizeof(SHA_CTX));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user