提交 23beafbe 编写于 作者: L Linus Torvalds
...@@ -45,7 +45,13 @@ struct priv { ...@@ -45,7 +45,13 @@ struct priv {
static inline void setbit128_bbe(void *b, int bit) 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, static int setkey(struct crypto_tfm *parent, const u8 *key,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册