Removed wrong memset calls.

This commit is contained in:
Alexandre Julliard 2004-10-07 19:14:21 +00:00
parent 6c6f71c8a9
commit 06e35a776b
2 changed files with 2 additions and 10 deletions

View File

@ -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 );
if ( ctx->digest != NULL )
memcpy( ctx->digest, ctx->buf, 16 ); memcpy( ctx->digest, ctx->buf, 16 );
memset( ctx, 0, sizeof(ctx) ); /* In case it's sensitive */
} }
/* The three core functions */ /* The three core functions */

View File

@ -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 );
if ( ctx->digest != NULL )
memcpy( ctx->digest, ctx->buf, 16 ); 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 */