summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-02-20 17:40:43 +0100
committerIngo Molnar <mingo@elte.hu>2009-02-20 17:40:43 +0100
commitb1476413966ceda1dadc6544828f2011b7e38198 (patch)
treecde7dca7d0d9364f3042bc709e8508b3cd4a4295
parentced91f4e1addc0ab3d00cbc36af7e4a071b3322b (diff)
parenteccd4ec34ac5e03d56c6a1bcf86f3b3182b2a460 (diff)
downloadlinux-crypto-b1476413966ceda1dadc6544828f2011b7e38198.tar.gz
linux-crypto-b1476413966ceda1dadc6544828f2011b7e38198.zip
Merge branch 'x86/urgent' into x86/core
Diffstat (limited to '')
-rw-r--r--crypto/lrw.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/crypto/lrw.c b/crypto/lrw.c
index 8ef664e3..358f80be 100644
--- a/crypto/lrw.c
+++ b/crypto/lrw.c
@@ -45,7 +45,13 @@ struct priv {
static inline void setbit128_bbe(void *b, int bit)
{
- __set_bit(bit ^ 0x78, b);
+ __set_bit(bit ^ (0x80 -
+#ifdef __BIG_ENDIAN
+ BITS_PER_LONG
+#else
+ BITS_PER_BYTE
+#endif
+ ), b);
}
static int setkey(struct crypto_tfm *parent, const u8 *key,