diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-07-03 15:19:31 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-07-03 15:19:31 +0000 |
commit | ed98898bb501d02e69093d34961bf1fb46d2ed4d (patch) | |
tree | e068af64b6db7985a173fe39a7559356608c108d /pjlib-util/src/pjlib-util/md5.c | |
parent | 63147d55f091ec8ba1a5b57cb04b421938ec9fde (diff) |
Change all pj_memset to pj_bzero(), where applicable
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@582 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib-util/src/pjlib-util/md5.c')
-rw-r--r-- | pjlib-util/src/pjlib-util/md5.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pjlib-util/src/pjlib-util/md5.c b/pjlib-util/src/pjlib-util/md5.c index 233a1da9..d48f683f 100644 --- a/pjlib-util/src/pjlib-util/md5.c +++ b/pjlib-util/src/pjlib-util/md5.c @@ -151,15 +151,15 @@ PJ_DEF(void) pj_md5_final(pj_md5_context *ctx, unsigned char digest[16]) /* Pad out to 56 mod 64 */ if (count < 8) { /* Two lots of padding: Pad the first block to 64 bytes */ - pj_memset(p, 0, count); + pj_bzero(p, count); byteReverse(ctx->in, 16); MD5Transform(ctx->buf, (pj_uint32_t *) ctx->in); /* Now fill the next block with 56 bytes */ - pj_memset(ctx->in, 0, 56); + pj_bzero(ctx->in, 56); } else { /* Pad block to 56 bytes */ - pj_memset(p, 0, count - 8); + pj_bzero(p, count - 8); } byteReverse(ctx->in, 14); @@ -170,7 +170,7 @@ PJ_DEF(void) pj_md5_final(pj_md5_context *ctx, unsigned char digest[16]) MD5Transform(ctx->buf, (pj_uint32_t *) ctx->in); byteReverse((unsigned char *) ctx->buf, 4); pj_memcpy(digest, ctx->buf, 16); - pj_memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ + pj_bzero(ctx, sizeof(ctx)); /* In case it's sensitive */ } #ifndef ASM_MD5 |