From: Jon Griffiths Date: Mon, 28 Mar 2016 14:09:30 +0000 (+1300) Subject: ripemd160: Fix a name typo X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=516148fb8b14a14bf23a4b732fed2942ca9b8d29 ripemd160: Fix a name typo Signed-off-by: Jon Griffiths --- diff --git a/ccan/crypto/ripemd160/ripemd160.c b/ccan/crypto/ripemd160/ripemd160.c index e030a71c..90830e17 100644 --- a/ccan/crypto/ripemd160/ripemd160.c +++ b/ccan/crypto/ripemd160/ripemd160.c @@ -341,13 +341,13 @@ void ripemd160_done(struct ripemd160_ctx *ctx, struct ripemd160 *res) } #endif -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 ctx; ripemd160_init(&ctx); ripemd160_update(&ctx, p, size); - ripemd160_done(&ctx, sha); + ripemd160_done(&ctx, ripemd); } void ripemd160_u8(struct ripemd160_ctx *ctx, uint8_t v) diff --git a/ccan/crypto/ripemd160/ripemd160.h b/ccan/crypto/ripemd160/ripemd160.h index e29e42bb..38d38156 100644 --- a/ccan/crypto/ripemd160/ripemd160.h +++ b/ccan/crypto/ripemd160/ripemd160.h @@ -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