mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
Restart sha hash on init
This commit is contained in:
parent
9f5b42a2bb
commit
fa5f12df89
@ -954,7 +954,7 @@ int main()
|
||||
|
||||
void sha256_init(sha256_ctx * ctx)
|
||||
{
|
||||
|
||||
ctx->sha.Restart();
|
||||
}
|
||||
|
||||
void sha256_update(sha256_ctx *ctx, const unsigned char *message,
|
||||
@ -970,6 +970,7 @@ void sha256_final(sha256_ctx *ctx, unsigned char *digest)
|
||||
|
||||
void sha512_init(sha512_ctx *ctx)
|
||||
{
|
||||
ctx->sha.Restart();
|
||||
}
|
||||
|
||||
void sha512_update(sha512_ctx *ctx, const unsigned char *message,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user