diff options
author | jbj <devnull@localhost> | 2003-06-02 17:01:41 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2003-06-02 17:01:41 +0000 |
commit | c3d235daaf15afad506160cade5e52ed6939b454 (patch) | |
tree | cb262551151503451eb46fae391a3c2cc2b3cf94 /beecrypt/md5.c | |
parent | 3ea8d7b1979c3bb88bffece0087f858b7a4678a7 (diff) | |
download | librpm-tizen-c3d235daaf15afad506160cade5e52ed6939b454.tar.gz librpm-tizen-c3d235daaf15afad506160cade5e52ed6939b454.tar.bz2 librpm-tizen-c3d235daaf15afad506160cade5e52ed6939b454.zip |
Yet another beecrypt-3.0.0 merge.
CVS patchset: 6882
CVS date: 2003/06/02 17:01:41
Diffstat (limited to 'beecrypt/md5.c')
-rw-r--r-- | beecrypt/md5.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/beecrypt/md5.c b/beecrypt/md5.c index 73f2e55c5..ecef23ff3 100644 --- a/beecrypt/md5.c +++ b/beecrypt/md5.c @@ -174,7 +174,7 @@ void md5Process(md5Param* mp) int md5Update(md5Param* mp, const byte* data, size_t size) { - register int proclength; + register unsigned short proclength; #if (MP_WBITS == 64) mpw add[1]; @@ -193,13 +193,13 @@ int md5Update(md5Param* mp, const byte* data, size_t size) /*@-type@*/ while (size > 0) { - proclength = ((mp->offset + size) > 64) ? (64 - mp->offset) : size; + proclength = ((mp->offset + size) > 64U) ? (64U - mp->offset) : size; memmove(((byte *) mp->data) + mp->offset, data, proclength); size -= proclength; data += proclength; mp->offset += proclength; - if (mp->offset == 64) + if (mp->offset == 64U) { md5Process(mp); mp->offset = 0; |