Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Michael MIC implementation - optimized for TKIP MIC operations
0004  * Copyright 2002-2003, Instant802 Networks, Inc.
0005  */
0006 
0007 #ifndef MICHAEL_H
0008 #define MICHAEL_H
0009 
0010 #include <linux/types.h>
0011 #include <linux/ieee80211.h>
0012 
0013 #define MICHAEL_MIC_LEN 8
0014 
0015 struct michael_mic_ctx {
0016     u32 l, r;
0017 };
0018 
0019 void michael_mic(const u8 *key, struct ieee80211_hdr *hdr,
0020          const u8 *data, size_t data_len, u8 *mic);
0021 
0022 #endif /* MICHAEL_H */