Commit caee16883a235b1b042282276859e7d5901fad21

Authored by Harvey Harrison
Committed by Herbert Xu
1 parent b2b6a1720d

crypto: rmd - sparse annotations

Similar to the rmd128.c annotations, significantly cuts down on the
noise.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Showing 3 changed files with 12 additions and 12 deletions Side-by-side Diff

... ... @@ -26,7 +26,7 @@
26 26 struct rmd160_ctx {
27 27 u64 byte_count;
28 28 u32 state[5];
29   - u32 buffer[16];
  29 + __le32 buffer[16];
30 30 };
31 31  
32 32 #define K1 RMD_K1
... ... @@ -52,7 +52,7 @@
52 52 (c) = rol32((c), 10); \
53 53 }
54 54  
55   -static void rmd160_transform(u32 *state, u32 const *in)
  55 +static void rmd160_transform(u32 *state, const __le32 *in)
56 56 {
57 57 u32 aa, bb, cc, dd, ee, aaa, bbb, ccc, ddd, eee;
58 58  
... ... @@ -313,8 +313,8 @@
313 313 {
314 314 struct rmd160_ctx *rctx = crypto_tfm_ctx(tfm);
315 315 u32 i, index, padlen;
316   - u64 bits;
317   - u32 *dst = (u32 *)out;
  316 + __le64 bits;
  317 + __le32 *dst = (__le32 *)out;
318 318 static const u8 padding[64] = { 0x80, };
319 319  
320 320 bits = cpu_to_le64(rctx->byte_count << 3);
... ... @@ -26,7 +26,7 @@
26 26 struct rmd256_ctx {
27 27 u64 byte_count;
28 28 u32 state[8];
29   - u32 buffer[16];
  29 + __le32 buffer[16];
30 30 };
31 31  
32 32 #define K1 RMD_K1
... ... @@ -48,7 +48,7 @@
48 48 (a) = rol32((a), (s)); \
49 49 }
50 50  
51   -static void rmd256_transform(u32 *state, u32 const *in)
  51 +static void rmd256_transform(u32 *state, const __le32 *in)
52 52 {
53 53 u32 aa, bb, cc, dd, aaa, bbb, ccc, ddd, tmp;
54 54  
... ... @@ -288,8 +288,8 @@
288 288 {
289 289 struct rmd256_ctx *rctx = crypto_tfm_ctx(tfm);
290 290 u32 i, index, padlen;
291   - u64 bits;
292   - u32 *dst = (u32 *)out;
  291 + __le64 bits;
  292 + __le32 *dst = (__le32 *)out;
293 293 static const u8 padding[64] = { 0x80, };
294 294  
295 295 bits = cpu_to_le64(rctx->byte_count << 3);
... ... @@ -26,7 +26,7 @@
26 26 struct rmd320_ctx {
27 27 u64 byte_count;
28 28 u32 state[10];
29   - u32 buffer[16];
  29 + __le32 buffer[16];
30 30 };
31 31  
32 32 #define K1 RMD_K1
... ... @@ -52,7 +52,7 @@
52 52 (c) = rol32((c), 10); \
53 53 }
54 54  
55   -static void rmd320_transform(u32 *state, u32 const *in)
  55 +static void rmd320_transform(u32 *state, const __le32 *in)
56 56 {
57 57 u32 aa, bb, cc, dd, ee, aaa, bbb, ccc, ddd, eee, tmp;
58 58  
... ... @@ -337,8 +337,8 @@
337 337 {
338 338 struct rmd320_ctx *rctx = crypto_tfm_ctx(tfm);
339 339 u32 i, index, padlen;
340   - u64 bits;
341   - u32 *dst = (u32 *)out;
  340 + __le64 bits;
  341 + __le32 *dst = (__le32 *)out;
342 342 static const u8 padding[64] = { 0x80, };
343 343  
344 344 bits = cpu_to_le64(rctx->byte_count << 3);