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 );
|
||||
byteReverse( (unsigned char *)ctx->buf, 4 );
|
||||
|
||||
if ( ctx->digest != NULL )
|
||||
memcpy( ctx->digest, ctx->buf, 16 );
|
||||
|
||||
memset( ctx, 0, sizeof(ctx) ); /* In case it's sensitive */
|
||||
memcpy( ctx->digest, ctx->buf, 16 );
|
||||
}
|
||||
|
||||
/* The three core functions */
|
||||
|
|
|
@ -176,11 +176,7 @@ VOID WINAPI MD5Final( MD5_CTX *ctx )
|
|||
|
||||
MD5Transform( ctx->buf, (unsigned int *)ctx->in );
|
||||
byteReverse( (unsigned char *)ctx->buf, 4 );
|
||||
|
||||
if ( ctx->digest != NULL )
|
||||
memcpy( ctx->digest, ctx->buf, 16 );
|
||||
|
||||
memset( ctx, 0, sizeof(ctx) ); /* In case it's sensitive */
|
||||
memcpy( ctx->digest, ctx->buf, 16 );
|
||||
}
|
||||
|
||||
/* The four core functions - F1 is optimized somewhat */
|
||||
|
|
Loading…
Reference in New Issue