|
@@ -6,7 +6,6 @@
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
* published by the Free Software Foundation.
|
|
|
*/
|
|
|
-
|
|
|
#include <linux/types.h>
|
|
|
#include <linux/bitops.h>
|
|
|
#include <asm/unaligned.h>
|
|
@@ -28,7 +27,7 @@ static void michael_block(struct michael_mic_ctx *mctx, u32 val)
|
|
|
}
|
|
|
|
|
|
static void michael_mic_hdr(struct michael_mic_ctx *mctx,
|
|
|
- u8 *key, u8 *da, u8 *sa, u8 priority)
|
|
|
+ const u8 *key, const u8 *da, const u8 *sa, u8 priority)
|
|
|
{
|
|
|
mctx->l = get_unaligned_le32(key);
|
|
|
mctx->r = get_unaligned_le32(key + 4);
|
|
@@ -44,8 +43,8 @@ static void michael_mic_hdr(struct michael_mic_ctx *mctx,
|
|
|
michael_block(mctx, priority);
|
|
|
}
|
|
|
|
|
|
-void michael_mic(u8 *key, u8 *da, u8 *sa, u8 priority,
|
|
|
- u8 *data, size_t data_len, u8 *mic)
|
|
|
+void michael_mic(const u8 *key, const u8 *da, const u8 *sa, u8 priority,
|
|
|
+ const u8 *data, size_t data_len, u8 *mic)
|
|
|
{
|
|
|
u32 val;
|
|
|
size_t block, blocks, left;
|