diff options
Diffstat (limited to 'crypto/rmd128.c')
-rw-r--r-- | crypto/rmd128.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rmd128.c b/crypto/rmd128.c index 89a535aa6eb8..1a481df66913 100644 --- a/crypto/rmd128.c +++ b/crypto/rmd128.c | |||
@@ -44,7 +44,7 @@ struct rmd128_ctx { | |||
44 | #define F4(x, y, z) (y ^ (z & (x ^ y))) /* z ? x : y */ | 44 | #define F4(x, y, z) (y ^ (z & (x ^ y))) /* z ? x : y */ |
45 | 45 | ||
46 | #define ROUND(a, b, c, d, f, k, x, s) { \ | 46 | #define ROUND(a, b, c, d, f, k, x, s) { \ |
47 | (a) += f((b), (c), (d)) + le32_to_cpu(x) + (k); \ | 47 | (a) += f((b), (c), (d)) + le32_to_cpup(&(x)) + (k); \ |
48 | (a) = rol32((a), (s)); \ | 48 | (a) = rol32((a), (s)); \ |
49 | } | 49 | } |
50 | 50 | ||
@@ -285,7 +285,7 @@ static void rmd128_final(struct crypto_tfm *tfm, u8 *out) | |||
285 | 285 | ||
286 | /* Store state in digest */ | 286 | /* Store state in digest */ |
287 | for (i = 0; i < 4; i++) | 287 | for (i = 0; i < 4; i++) |
288 | dst[i] = cpu_to_le32(rctx->state[i]); | 288 | dst[i] = cpu_to_le32p(&rctx->state[i]); |
289 | 289 | ||
290 | /* Wipe context */ | 290 | /* Wipe context */ |
291 | memset(rctx, 0, sizeof(*rctx)); | 291 | memset(rctx, 0, sizeof(*rctx)); |