summaryrefslogtreecommitdiffhomepage
path: root/src/crypto/blake2s.c
diff options
context:
space:
mode:
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]);