crypto: streebog - fix unaligned memory accesses
authorEric Biggers <ebiggers@google.com>
Sun, 31 Mar 2019 20:04:19 +0000 (13:04 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 8 Apr 2019 06:42:55 +0000 (14:42 +0800)
commitc5c46887cfe7d0dff743d9eda7c91de625e96960
tree668913b19acf6a31a5a2a19024c96c942528be00
parent5e27f38f1f3f45a0c938299c3a34a2d2db77165a
crypto: streebog - fix unaligned memory accesses

Don't cast the data buffer directly to streebog_uint512, as this
violates alignment rules.

Fixes: fe18957e8e87 ("crypto: streebog - add Streebog hash function")
Cc: Vitaly Chikunov <vt@altlinux.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Vitaly Chikunov <vt@altlinux.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/streebog_generic.c
include/crypto/streebog.h