Back to home page

OSCL-LXR

 
 

    


0001 /* Orinoco MIC helpers
0002  *
0003  * See copyright notice in main.c
0004  */
0005 #ifndef _ORINOCO_MIC_H_
0006 #define _ORINOCO_MIC_H_
0007 
0008 #include <linux/types.h>
0009 #include <crypto/hash.h>
0010 
0011 #define MICHAEL_MIC_LEN 8
0012 
0013 /* Forward declarations */
0014 struct orinoco_private;
0015 struct crypto_ahash;
0016 
0017 int orinoco_mic_init(struct orinoco_private *priv);
0018 void orinoco_mic_free(struct orinoco_private *priv);
0019 int orinoco_mic(struct crypto_shash *tfm_michael, u8 *key,
0020         u8 *da, u8 *sa, u8 priority,
0021         u8 *data, size_t data_len, u8 *mic);
0022 
0023 #endif /* ORINOCO_MIC_H */