diff options
Diffstat (limited to 'crypto/rmd160.c')
-rw-r--r-- | crypto/rmd160.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rmd160.c b/crypto/rmd160.c index 136e31f56d53..e9fd5f6a0acb 100644 --- a/crypto/rmd160.c +++ b/crypto/rmd160.c | |||
@@ -47,7 +47,7 @@ struct rmd160_ctx { | |||
47 | #define F5(x, y, z) (x ^ (y | ~z)) | 47 | #define F5(x, y, z) (x ^ (y | ~z)) |
48 | 48 | ||
49 | #define ROUND(a, b, c, d, e, f, k, x, s) { \ | 49 | #define ROUND(a, b, c, d, e, f, k, x, s) { \ |
50 | (a) += f((b), (c), (d)) + le32_to_cpu(x) + (k); \ | 50 | (a) += f((b), (c), (d)) + le32_to_cpup(&(x)) + (k); \ |
51 | (a) = rol32((a), (s)) + (e); \ | 51 | (a) = rol32((a), (s)) + (e); \ |
52 | (c) = rol32((c), 10); \ | 52 | (c) = rol32((c), 10); \ |
53 | } | 53 | } |
@@ -329,7 +329,7 @@ static void rmd160_final(struct crypto_tfm *tfm, u8 *out) | |||
329 | 329 | ||
330 | /* Store state in digest */ | 330 | /* Store state in digest */ |
331 | for (i = 0; i < 5; i++) | 331 | for (i = 0; i < 5; i++) |
332 | dst[i] = cpu_to_le32(rctx->state[i]); | 332 | dst[i] = cpu_to_le32p(&rctx->state[i]); |
333 | 333 | ||
334 | /* Wipe context */ | 334 | /* Wipe context */ |
335 | memset(rctx, 0, sizeof(*rctx)); | 335 | memset(rctx, 0, sizeof(*rctx)); |