Ignore:
Timestamp:
Jul 3, 2006 3:19:31 PM (17 years ago)
Author:
bennylp
Message:

Change all pj_memset to pj_bzero(), where applicable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjlib-util/md5.c

    r65 r582  
    152152    if (count < 8) { 
    153153        /* Two lots of padding:  Pad the first block to 64 bytes */ 
    154         pj_memset(p, 0, count); 
     154        pj_bzero(p, count); 
    155155        byteReverse(ctx->in, 16); 
    156156        MD5Transform(ctx->buf, (pj_uint32_t *) ctx->in); 
    157157 
    158158        /* Now fill the next block with 56 bytes */ 
    159         pj_memset(ctx->in, 0, 56); 
     159        pj_bzero(ctx->in, 56); 
    160160    } else { 
    161161        /* Pad block to 56 bytes */ 
    162         pj_memset(p, 0, count - 8); 
     162        pj_bzero(p, count - 8); 
    163163    } 
    164164    byteReverse(ctx->in, 14); 
     
    171171    byteReverse((unsigned char *) ctx->buf, 4); 
    172172    pj_memcpy(digest, ctx->buf, 16); 
    173     pj_memset(ctx, 0, sizeof(ctx));     /* In case it's sensitive */ 
     173    pj_bzero(ctx, sizeof(ctx)); /* In case it's sensitive */ 
    174174} 
    175175 
Note: See TracChangeset for help on using the changeset viewer.