diff options
author | Werner Koch <[email protected]> | 2011-02-04 11:57:53 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2011-02-04 11:57:53 +0000 |
commit | b008274afdbe375b32a7e66dbd073e200f6f0587 (patch) | |
tree | 219e239d39cf06be3f03aa82fb572080ac163a15 /g10/rmd160.c | |
parent | Let autogen.sh check the git config (diff) | |
download | gnupg-b008274afdbe375b32a7e66dbd073e200f6f0587.tar.gz gnupg-b008274afdbe375b32a7e66dbd073e200f6f0587.zip |
Nuked almost all trailing white space.post-nuke-of-trailing-ws
We better do this once and for all instead of cluttering all future
commits with diffs of trailing white spaces. In the majority of cases
blank or single lines are affected and thus this change won't disturb
a git blame too much. For future commits the pre-commit scripts
checks that this won't happen again.
Diffstat (limited to 'g10/rmd160.c')
-rw-r--r-- | g10/rmd160.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/g10/rmd160.c b/g10/rmd160.c index febfa618a..8eb005f54 100644 --- a/g10/rmd160.c +++ b/g10/rmd160.c @@ -55,7 +55,7 @@ rol (u32 x, int n) #endif /* Structure holding the context for the RIPE-MD160 computation. */ -typedef struct +typedef struct { u32 h0, h1, h2, h3, h4; u32 nblocks; @@ -88,10 +88,10 @@ transform (rmd160_context_t *hd, const unsigned char *data) u32 a,b,c,d,e,aa,bb,cc,dd,ee,t; #ifdef BIG_ENDIAN_HOST u32 x[16]; - { + { int i; unsigned char *p2, *p1; - for (i=0, p1=data, p2=(unsigned char*)x; i < 16; i++, p2 += 4 ) + for (i=0, p1=data, p2=(unsigned char*)x; i < 16; i++, p2 += 4 ) { p2[3] = *p1++; p2[2] = *p1++; @@ -315,8 +315,8 @@ transform (rmd160_context_t *hd, const unsigned char *data) static void rmd160_write (rmd160_context_t *hd, const unsigned char *inbuf, size_t inlen) { - if( hd->count == 64 ) - { + if( hd->count == 64 ) + { /* Flush the buffer. */ transform (hd, hd->buf); hd->count = 0; @@ -371,7 +371,7 @@ rmd160_final( rmd160_context_t *hd ) msb |= t >> 29; if (hd->count < 56) - { + { /* Enough room. */ hd->buf[hd->count++] = 0x80; /* Pad character. */ while (hd->count < 56) @@ -396,7 +396,7 @@ rmd160_final( rmd160_context_t *hd ) hd->buf[62] = msb >> 16; hd->buf[63] = msb >> 24; transform (hd, hd->buf); - + p = hd->buf; #define X(a) do { *p++ = hd->h##a; *p++ = hd->h##a >> 8; \ *p++ = hd->h##a >> 16; *p++ = hd->h##a >> 24; } while(0) @@ -417,7 +417,7 @@ void rmd160_hash_buffer (void *outbuf, const void *buffer, size_t length) { rmd160_context_t hd; - + rmd160_init (&hd); rmd160_write (&hd, buffer, length); rmd160_final (&hd); |