Removed wrong memset calls.
This commit is contained in:
parent
6c6f71c8a9
commit
06e35a776b
|
@ -176,11 +176,7 @@ VOID WINAPI MD4Final( MD4_CTX *ctx )
|
||||||
|
|
||||||
MD4Transform( ctx->buf, (unsigned int *)ctx->in );
|
MD4Transform( ctx->buf, (unsigned int *)ctx->in );
|
||||||
byteReverse( (unsigned char *)ctx->buf, 4 );
|
byteReverse( (unsigned char *)ctx->buf, 4 );
|
||||||
|
memcpy( ctx->digest, ctx->buf, 16 );
|
||||||
if ( ctx->digest != NULL )
|
|
||||||
memcpy( ctx->digest, ctx->buf, 16 );
|
|
||||||
|
|
||||||
memset( ctx, 0, sizeof(ctx) ); /* In case it's sensitive */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The three core functions */
|
/* The three core functions */
|
||||||
|
|
|
@ -176,11 +176,7 @@ VOID WINAPI MD5Final( MD5_CTX *ctx )
|
||||||
|
|
||||||
MD5Transform( ctx->buf, (unsigned int *)ctx->in );
|
MD5Transform( ctx->buf, (unsigned int *)ctx->in );
|
||||||
byteReverse( (unsigned char *)ctx->buf, 4 );
|
byteReverse( (unsigned char *)ctx->buf, 4 );
|
||||||
|
memcpy( ctx->digest, ctx->buf, 16 );
|
||||||
if ( ctx->digest != NULL )
|
|
||||||
memcpy( ctx->digest, ctx->buf, 16 );
|
|
||||||
|
|
||||||
memset( ctx, 0, sizeof(ctx) ); /* In case it's sensitive */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The four core functions - F1 is optimized somewhat */
|
/* The four core functions - F1 is optimized somewhat */
|
||||||
|
|
Loading…
Reference in New Issue