diff options
author | jlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2006-03-08 00:32:35 +0000 |
---|---|---|
committer | jlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2006-03-08 00:32:35 +0000 |
commit | 757d2cad8f3f75c420ad2e462b787cd9cf8a7a62 (patch) | |
tree | e68a780d9afd61caedc6c56da5fc029000e80835 /cups/md5.c | |
parent | 4744bd907e6750c26bba4354d986e342406147ca (diff) | |
download | cups-757d2cad8f3f75c420ad2e462b787cd9cf8a7a62.tar.gz |
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@80 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cups/md5.c')
-rw-r--r-- | cups/md5.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cups/md5.c b/cups/md5.c index a0469408c..9a3fab987 100644 --- a/cups/md5.c +++ b/cups/md5.c @@ -26,7 +26,7 @@ ghost@aladdin.com */ -/*$Id: md5.c 4695 2005-09-23 17:07:14Z mike $ */ +/*$Id: md5.c 5232 2006-03-05 17:59:19Z mike $ */ /* Independent implementation of MD5 (RFC 1321). @@ -273,7 +273,7 @@ _cups_md5_process(_cups_md5_state_t *pms, const unsigned char *data /*[64]*/) } void -_cups_md5_init(_cups_md5_state_t *pms) +_cupsMD5Init(_cups_md5_state_t *pms) { pms->count[0] = pms->count[1] = 0; pms->abcd[0] = 0x67452301; @@ -283,7 +283,7 @@ _cups_md5_init(_cups_md5_state_t *pms) } void -_cups_md5_append(_cups_md5_state_t *pms, const unsigned char *data, int nbytes) +_cupsMD5Append(_cups_md5_state_t *pms, const unsigned char *data, int nbytes) { const unsigned char *p = data; int left = nbytes; @@ -321,7 +321,7 @@ _cups_md5_append(_cups_md5_state_t *pms, const unsigned char *data, int nbytes) } void -_cups_md5_finish(_cups_md5_state_t *pms, unsigned char digest[16]) +_cupsMD5Finish(_cups_md5_state_t *pms, unsigned char digest[16]) { static const unsigned char pad[64] = { 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -336,9 +336,9 @@ _cups_md5_finish(_cups_md5_state_t *pms, unsigned char digest[16]) for (i = 0; i < 8; ++i) data[i] = (unsigned char)(pms->count[i >> 2] >> ((i & 3) << 3)); /* Pad to 56 bytes mod 64. */ - _cups_md5_append(pms, pad, ((55 - (pms->count[0] >> 3)) & 63) + 1); + _cupsMD5Append(pms, pad, ((55 - (pms->count[0] >> 3)) & 63) + 1); /* Append the length. */ - _cups_md5_append(pms, data, 8); + _cupsMD5Append(pms, data, 8); for (i = 0; i < 16; ++i) digest[i] = (unsigned char)(pms->abcd[i >> 2] >> ((i & 3) << 3)); } |