summaryrefslogtreecommitdiff
path: root/rpmio/digest.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-06-05 19:26:22 +0000
committerjbj <devnull@localhost>2001-06-05 19:26:22 +0000
commit4ae69250a2595531743074d81aec5804a1b5573f (patch)
treec0eb69d1a276ee9421a12745eae40bcfaa122dfa /rpmio/digest.c
parent750d54d8a33e67d8f89ed95a785c0f025c833aa8 (diff)
downloadrpm-4ae69250a2595531743074d81aec5804a1b5573f.tar.gz
rpm-4ae69250a2595531743074d81aec5804a1b5573f.tar.bz2
rpm-4ae69250a2595531743074d81aec5804a1b5573f.zip
- fix typos in linux.{req,prov}.
CVS patchset: 4834 CVS date: 2001/06/05 19:26:22
Diffstat (limited to 'rpmio/digest.c')
-rw-r--r--rpmio/digest.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/rpmio/digest.c b/rpmio/digest.c
index c463d1509..60bb9ae84 100644
--- a/rpmio/digest.c
+++ b/rpmio/digest.c
@@ -377,6 +377,7 @@ static union _mendian {
/*@-shadow@*/
static void
byteReverse(byte *buf, unsigned nbytes)
+ /*@modifies *buf @*/
{
unsigned nlongs = nbytes / sizeof(uint32);
uint32 t;
@@ -455,7 +456,9 @@ rpmDigestUpdate(DIGEST_CTX ctx, const void * data, size_t len)
memcpy(p, buf, t);
if (ctx->doByteReverse)
byteReverse(ctx->in, ctx->datalen);
+ /*@-moduncon@*/
ctx->transform(ctx);
+ /*@=moduncon@*/
buf += t;
len -= t;
}
@@ -467,7 +470,9 @@ rpmDigestUpdate(DIGEST_CTX ctx, const void * data, size_t len)
/*@=mayaliasunique@*/
if (ctx->doByteReverse)
byteReverse(ctx->in, ctx->datalen);
+ /*@-moduncon@*/
ctx->transform(ctx);
+ /*@=moduncon@*/
}
/* Handle any remaining bytes of data. */
@@ -495,7 +500,9 @@ rpmDigestFinal(/*@only@*/ DIGEST_CTX ctx, /*@out@*/ void ** datap,
memset(p, 0, count);
if (ctx->doByteReverse)
byteReverse(ctx->in, ctx->datalen);
+ /*@-moduncon@*/
ctx->transform(ctx);
+ /*@=moduncon@*/
p = ctx->in;
count = ctx->datalen;
}
@@ -506,7 +513,9 @@ rpmDigestFinal(/*@only@*/ DIGEST_CTX ctx, /*@out@*/ void ** datap,
byteReverse(ctx->in, ctx->datalen - sizeof(ctx->bits));
((uint32 *) ctx->in)[14] = ctx->bits[0];
((uint32 *) ctx->in)[15] = ctx->bits[1];
+ /*@-moduncon@*/
ctx->transform(ctx);
+ /*@=moduncon@*/
/* Return final digest. */
if (ctx->doByteReverse)