Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99295
b: refs/heads/master
c: b2b6a17
h: refs/heads/master
i:
  99293: 0793b59
  99291: 6f999a1
  99287: 31d7e6b
  99279: 52bb6fc
  99263: a82cab6
v: v3
  • Loading branch information
Harvey Harrison authored and Herbert Xu committed Jul 10, 2008
1 parent 777e0ea commit 942b232
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: bd699f2df6dbc2f4cba528fe598bd63a4d3702c5
refs/heads/master: b2b6a1720db65c97885ab9fc51fa23be47573bf4
8 changes: 4 additions & 4 deletions trunk/crypto/rmd128.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
struct rmd128_ctx {
u64 byte_count;
u32 state[4];
u32 buffer[16];
__le32 buffer[16];
};

#define K1 RMD_K1
Expand All @@ -48,7 +48,7 @@ struct rmd128_ctx {
(a) = rol32((a), (s)); \
}

static void rmd128_transform(u32 *state, u32 const *in)
static void rmd128_transform(u32 *state, const __le32 *in)
{
u32 aa, bb, cc, dd, aaa, bbb, ccc, ddd;

Expand Down Expand Up @@ -269,8 +269,8 @@ static void rmd128_final(struct crypto_tfm *tfm, u8 *out)
{
struct rmd128_ctx *rctx = crypto_tfm_ctx(tfm);
u32 i, index, padlen;
u64 bits;
u32 *dst = (u32 *)out;
__le64 bits;
__le32 *dst = (__le32 *)out;
static const u8 padding[64] = { 0x80, };

bits = cpu_to_le64(rctx->byte_count << 3);
Expand Down

0 comments on commit 942b232

Please sign in to comment.