Blame view
net/mac80211/michael.h
456 Bytes
d2912cb15
|
1 |
/* SPDX-License-Identifier: GPL-2.0-only */ |
f0706e828
|
2 3 4 |
/* * Michael MIC implementation - optimized for TKIP MIC operations * Copyright 2002-2003, Instant802 Networks, Inc. |
f0706e828
|
5 6 7 8 9 10 |
*/ #ifndef MICHAEL_H #define MICHAEL_H #include <linux/types.h> |
aa51142fc
|
11 |
#include <linux/ieee80211.h> |
f0706e828
|
12 13 |
#define MICHAEL_MIC_LEN 8 |
1b19ca396
|
14 15 16 |
struct michael_mic_ctx { u32 l, r; }; |
8e8862b79
|
17 |
void michael_mic(const u8 *key, struct ieee80211_hdr *hdr, |
a7b6f0c55
|
18 |
const u8 *data, size_t data_len, u8 *mic); |
f0706e828
|
19 20 |
#endif /* MICHAEL_H */ |