Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99286
b: refs/heads/master
c: 5cdcc22
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu committed Jul 10, 2008
1 parent 7d3a7cb commit c84792b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0936a944068ef68f8b19f437e03f4654c29f2423
refs/heads/master: 5cdcc22f25b0766fe16d5dd8e3b2efc91fa4da6e
4 changes: 2 additions & 2 deletions trunk/crypto/rmd128.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct rmd128_ctx {
#define F4(x, y, z) (y ^ (z & (x ^ y))) /* z ? x : y */

#define ROUND(a, b, c, d, f, k, x, s) { \
(a) += f((b), (c), (d)) + le32_to_cpu(x) + (k); \
(a) += f((b), (c), (d)) + le32_to_cpup(&(x)) + (k); \
(a) = rol32((a), (s)); \
}

Expand Down Expand Up @@ -285,7 +285,7 @@ static void rmd128_final(struct crypto_tfm *tfm, u8 *out)

/* Store state in digest */
for (i = 0; i < 4; i++)
dst[i] = cpu_to_le32(rctx->state[i]);
dst[i] = cpu_to_le32p(&rctx->state[i]);

/* Wipe context */
memset(rctx, 0, sizeof(*rctx));
Expand Down
4 changes: 2 additions & 2 deletions trunk/crypto/rmd160.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct rmd160_ctx {
#define F5(x, y, z) (x ^ (y | ~z))

#define ROUND(a, b, c, d, e, f, k, x, s) { \
(a) += f((b), (c), (d)) + le32_to_cpu(x) + (k); \
(a) += f((b), (c), (d)) + le32_to_cpup(&(x)) + (k); \
(a) = rol32((a), (s)) + (e); \
(c) = rol32((c), 10); \
}
Expand Down Expand Up @@ -329,7 +329,7 @@ static void rmd160_final(struct crypto_tfm *tfm, u8 *out)

/* Store state in digest */
for (i = 0; i < 5; i++)
dst[i] = cpu_to_le32(rctx->state[i]);
dst[i] = cpu_to_le32p(&rctx->state[i]);

/* Wipe context */
memset(rctx, 0, sizeof(*rctx));
Expand Down
4 changes: 2 additions & 2 deletions trunk/crypto/rmd256.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct rmd256_ctx {
#define F4(x, y, z) (y ^ (z & (x ^ y))) /* z ? x : y */

#define ROUND(a, b, c, d, f, k, x, s) { \
(a) += f((b), (c), (d)) + le32_to_cpu(x) + (k); \
(a) += f((b), (c), (d)) + le32_to_cpup(&(x)) + (k); \
(a) = rol32((a), (s)); \
}

Expand Down Expand Up @@ -304,7 +304,7 @@ static void rmd256_final(struct crypto_tfm *tfm, u8 *out)

/* Store state in digest */
for (i = 0; i < 8; i++)
dst[i] = cpu_to_le32(rctx->state[i]);
dst[i] = cpu_to_le32p(&rctx->state[i]);

/* Wipe context */
memset(rctx, 0, sizeof(*rctx));
Expand Down
4 changes: 2 additions & 2 deletions trunk/crypto/rmd320.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct rmd320_ctx {
#define F5(x, y, z) (x ^ (y | ~z))

#define ROUND(a, b, c, d, e, f, k, x, s) { \
(a) += f((b), (c), (d)) + le32_to_cpu(x) + (k); \
(a) += f((b), (c), (d)) + le32_to_cpup(&(x)) + (k); \
(a) = rol32((a), (s)) + (e); \
(c) = rol32((c), 10); \
}
Expand Down Expand Up @@ -353,7 +353,7 @@ static void rmd320_final(struct crypto_tfm *tfm, u8 *out)

/* Store state in digest */
for (i = 0; i < 10; i++)
dst[i] = cpu_to_le32(rctx->state[i]);
dst[i] = cpu_to_le32p(&rctx->state[i]);

/* Wipe context */
memset(rctx, 0, sizeof(*rctx));
Expand Down

0 comments on commit c84792b

Please sign in to comment.