blob: a7fdb8e84615af1ba5d23a3eb41635d3d2919af9 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Jiri Bencf0706e82007-05-05 11:45:53 -07002/*
3 * Michael MIC implementation - optimized for TKIP MIC operations
4 * Copyright 2002-2003, Instant802 Networks, Inc.
Jiri Bencf0706e82007-05-05 11:45:53 -07005 */
6
7#ifndef MICHAEL_H
8#define MICHAEL_H
9
10#include <linux/types.h>
Zhao, Gangaa511422014-04-09 09:28:09 +080011#include <linux/ieee80211.h>
Jiri Bencf0706e82007-05-05 11:45:53 -070012
13#define MICHAEL_MIC_LEN 8
14
Harvey Harrison1b19ca32008-05-14 16:26:17 -070015struct michael_mic_ctx {
16 u32 l, r;
17};
18
Harvey Harrison8e8862b2008-07-02 11:05:35 -070019void michael_mic(const u8 *key, struct ieee80211_hdr *hdr,
Harvey Harrisona7b6f0c2008-05-14 16:26:18 -070020 const u8 *data, size_t data_len, u8 *mic);
Jiri Bencf0706e82007-05-05 11:45:53 -070021
22#endif /* MICHAEL_H */