mic.h 526 B

123456789101112131415161718192021222324
  1. /* Orinoco MIC helpers
  2. *
  3. * See copyright notice in main.c
  4. */
  5. #ifndef _ORINOCO_MIC_H_
  6. #define _ORINOCO_MIC_H_
  7. #include <linux/types.h>
  8. #include <crypto/hash.h>
  9. #define MICHAEL_MIC_LEN 8
  10. /* Forward declarations */
  11. struct orinoco_private;
  12. struct crypto_ahash;
  13. int orinoco_mic_init(struct orinoco_private *priv);
  14. void orinoco_mic_free(struct orinoco_private *priv);
  15. int orinoco_mic(struct crypto_shash *tfm_michael, u8 *key,
  16. u8 *da, u8 *sa, u8 priority,
  17. u8 *data, size_t data_len, u8 *mic);
  18. #endif /* ORINOCO_MIC_H */