summaryrefslogtreecommitdiffhomepage
path: root/src/crypto/blake2s.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-08-02 04:24:38 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-08-02 14:40:24 +0200
commitfbfcdf28f98d54073b9387fda061894920649e26 (patch)
tree42a3be48bf1c2a2885601faf59fc95bb4186555b /src/crypto/blake2s.c
parenteb430cb35d770e60be99123d4d6e6c602f63d235 (diff)
blake2s: satisfy sparse
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/blake2s.c')
-rw-r--r--src/crypto/blake2s.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/blake2s.c b/src/crypto/blake2s.c
index 0115d44..a5022f9 100644
--- a/src/crypto/blake2s.c
+++ b/src/crypto/blake2s.c
@@ -61,12 +61,12 @@ static inline void blake2s_increment_counter(struct blake2s_state *state, const
static inline void blake2s_init_param(struct blake2s_state *state, const blake2s_param *param)
{
- const u32 *p;
+ const __le32 *p;
int i;
memset(state, 0, sizeof(struct blake2s_state));
for (i = 0; i < 8; ++i)
state->h[i] = blake2s_iv[i];
- p = (const u32 *)param;
+ p = (const __le32 *)param;
/* IV XOR ParamBlock */
for (i = 0; i < 8; ++i)
state->h[i] ^= le32_to_cpu(p[i]);