]> git.ozlabs.org Git - ccan/blobdiff - ccan/crypto/ripemd160/ripemd160.h
crypto/ripemd160: Correct badly sized union member
[ccan] / ccan / crypto / ripemd160 / ripemd160.h
index 38d38156f36391a04c64ace7b735ca8cab92193b..56854cff27766206b7451ae5cb09f3303dcfa2d2 100644 (file)
@@ -6,7 +6,7 @@
 #include <stdlib.h>
 
 /* Uncomment this to use openssl's RIPEMD160 routines (and link with -lcrypto) */
-//#define CCAN_CRYPTO_RIPEMD160_USE_OPENSSL 1
+/*#define CCAN_CRYPTO_RIPEMD160_USE_OPENSSL 1*/
 
 #ifdef CCAN_CRYPTO_RIPEMD160_USE_OPENSSL
 #include <openssl/ripemd.h>
@@ -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