summaryrefslogtreecommitdiffstats
path: root/include/crypto/streebog.h
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-01-10 21:17:54 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2019-01-18 11:43:43 +0100
commit73381da5f9ec333b1fbe38a156e7764a90e36a74 (patch)
tree4b257ce2e45f0ee0bf18ac3eb4db8ebe40b16871 /include/crypto/streebog.h
parentcrypto: rsa-pkcs1pad - include <crypto/internal/rsa.h> (diff)
downloadlinux-73381da5f9ec333b1fbe38a156e7764a90e36a74.tar.xz
linux-73381da5f9ec333b1fbe38a156e7764a90e36a74.zip
crypto: streebog - use correct endianness type
streebog_uint512::qword needs to be __le64, not u64. This fixes a large number of sparse warnings: crypto/streebog_generic.c:25:9: warning: incorrect type in initializer (different base types) crypto/streebog_generic.c:25:9: expected unsigned long long crypto/streebog_generic.c:25:9: got restricted __le64 [usertype] [omitted many similar warnings] No actual change in behavior. Cc: Vitaly Chikunov <vt@altlinux.org> Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--include/crypto/streebog.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crypto/streebog.h b/include/crypto/streebog.h
index 4af119f7e07b..856e32af8657 100644
--- a/include/crypto/streebog.h
+++ b/include/crypto/streebog.h
@@ -19,7 +19,7 @@
#define STREEBOG_BLOCK_SIZE 64
struct streebog_uint512 {
- u64 qword[8];
+ __le64 qword[8];
};
struct streebog_state {