9 #include <linux/types.h>
10 #include <linux/bitops.h>
12 #include <asm/unaligned.h>
19 mctx->
r ^= rol32(mctx->
l, 17);
21 mctx->
r ^= ((mctx->
l & 0xff00ff00) >> 8) |
22 ((mctx->
l & 0x00ff00ff) << 8);
24 mctx->
r ^= rol32(mctx->
l, 3);
26 mctx->
r ^= ror32(mctx->
l, 2);
35 da = ieee80211_get_DA(hdr);
36 sa = ieee80211_get_SA(hdr);
51 (get_unaligned_le16(sa) << 16));
63 michael_mic_hdr(&mctx, key, hdr);
66 blocks = data_len / 4;
69 for (block = 0; block < blocks; block++)
78 val |= data[blocks * 4 +
left];