diff options
Diffstat (limited to 'include/crypto/streebog.h')
-rw-r--r-- | include/crypto/streebog.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/crypto/streebog.h b/include/crypto/streebog.h index 4af119f7e07b..cae1b4a01971 100644 --- a/include/crypto/streebog.h +++ b/include/crypto/streebog.h @@ -19,11 +19,14 @@ #define STREEBOG_BLOCK_SIZE 64 struct streebog_uint512 { - u64 qword[8]; + __le64 qword[8]; }; struct streebog_state { - u8 buffer[STREEBOG_BLOCK_SIZE]; + union { + u8 buffer[STREEBOG_BLOCK_SIZE]; + struct streebog_uint512 m; + }; struct streebog_uint512 hash; struct streebog_uint512 h; struct streebog_uint512 N; |