Changes in lib/md5.c [e1c926f:bea1305]
Legend:
- Unmodified
- Added
- Removed
-
lib/md5.c
re1c926f rbea1305 24 24 #include <sys/types.h> 25 25 #include <string.h> /* for memcpy() */ 26 #include <stdio.h>27 26 #include "md5.h" 28 27 … … 161 160 memcpy(digest, ctx->buf, 16); 162 161 memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ 163 }164 165 void md5_finish_ascii(struct MD5Context *context, char *ascii)166 {167 md5_byte_t bin[16];168 int i;169 170 md5_finish(context, bin);171 for (i = 0; i < 16; i ++)172 sprintf(ascii + i * 2, "%02x", bin[i]);173 162 } 174 163
Note: See TracChangeset
for help on using the changeset viewer.