diff options
Diffstat (limited to 'random/gnupg-rmd160.c')
-rw-r--r-- | random/gnupg-rmd160.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/random/gnupg-rmd160.c b/random/gnupg-rmd160.c index 66107685..8f4207b3 100644 --- a/random/gnupg-rmd160.c +++ b/random/gnupg-rmd160.c @@ -458,9 +458,9 @@ rmd160_write( RMD160_CONTEXT *hd, byte *inbuf, size_t inlen) * Returns: 16 bytes in buffer with the mixed contentes of buffer. */ void -rmd160_mixblock( RMD160_CONTEXT *hd, char *buffer ) +rmd160_mixblock( RMD160_CONTEXT *hd, byte *buffer ) { - char *p = buffer; + byte *p = buffer; transform( hd, buffer ); #define X(a) do { *(u32*)p = hd->h##a ; p += 4; } while(0) X(0); @@ -536,12 +536,6 @@ rmd160_final( RMD160_CONTEXT *hd ) #undef X } -static byte * -rmd160_read( RMD160_CONTEXT *hd ) -{ - return hd->buf; -} - /**************** @@ -560,6 +554,14 @@ rmd160_hash_buffer( char *outbuf, const char *buffer, size_t length ) } +#ifndef __HURD__ + +static byte * +rmd160_read( RMD160_CONTEXT *hd ) +{ + return hd->buf; +} + /**************** * Return some information about the algorithm. We need algo here to * distinguish different flavors of the algorithm. @@ -643,9 +645,6 @@ gnupgext_enum_func( int what, int *sequence, int *class, int *vers ) return ret; } - - -#ifndef __HURD__ #ifndef IS_MODULE void rmd160_constructor(void) |