12be45b66SKalle Valo /* Orinoco MIC helpers
22be45b66SKalle Valo  *
32be45b66SKalle Valo  * See copyright notice in main.c
42be45b66SKalle Valo  */
52be45b66SKalle Valo #ifndef _ORINOCO_MIC_H_
62be45b66SKalle Valo #define _ORINOCO_MIC_H_
72be45b66SKalle Valo 
82be45b66SKalle Valo #include <linux/types.h>
92be45b66SKalle Valo 
102be45b66SKalle Valo #define MICHAEL_MIC_LEN 8
112be45b66SKalle Valo 
122be45b66SKalle Valo /* Forward declarations */
132be45b66SKalle Valo struct orinoco_private;
14a60b7fafSHerbert Xu struct crypto_ahash;
152be45b66SKalle Valo 
162be45b66SKalle Valo int orinoco_mic_init(struct orinoco_private *priv);
172be45b66SKalle Valo void orinoco_mic_free(struct orinoco_private *priv);
18a60b7fafSHerbert Xu int orinoco_mic(struct crypto_ahash *tfm_michael, u8 *key,
192be45b66SKalle Valo 		u8 *da, u8 *sa, u8 priority,
202be45b66SKalle Valo 		u8 *data, size_t data_len, u8 *mic);
212be45b66SKalle Valo 
222be45b66SKalle Valo #endif /* ORINOCO_MIC_H */
23