]> git.ozlabs.org Git - ccan/blobdiff - ccan/crypto/ripemd160/ripemd160.h
base64: fix for unsigned chars (e.g. ARM).
[ccan] / ccan / crypto / ripemd160 / ripemd160.h
index fc3bf0eabc71d556624e2b085bcfa78b615e0f2f..56854cff27766206b7451ae5cb09f3303dcfa2d2 100644 (file)
@@ -37,7 +37,7 @@ struct ripemd160 {
  * The bytes pointed to by @p is RIPEMD160 hashed into @ripemd160.  This is
  * equivalent to ripemd160_init(), ripemd160_update() then ripemd160_done().
  */
-void ripemd160(struct ripemd160 *sha, const void *p, size_t size);
+void ripemd160(struct ripemd160 *ripemd, const void *p, size_t size);
 
 /**
  * struct ripemd160_ctx - structure to store running context for ripemd160
@@ -49,7 +49,7 @@ struct ripemd160_ctx {
        uint32_t s[5];
        uint64_t bytes;
        union {
-               uint32_t u32[8];
+               uint32_t u32[16];
                unsigned char u8[64];
        } buf;
 #endif