Blame view

net/mac80211/aes_cmac.h 592 Bytes
d2912cb15   Thomas Gleixner   treewide: Replace...
1
  /* SPDX-License-Identifier: GPL-2.0-only */
765cb46a3   Jouni Malinen   mac80211: 802.11w...
2
3
  /*
   * Copyright 2008, Jouni Malinen <j@w1.fi>
765cb46a3   Jouni Malinen   mac80211: 802.11w...
4
5
6
7
8
9
   */
  
  #ifndef AES_CMAC_H
  #define AES_CMAC_H
  
  #include <linux/crypto.h>
26717828b   Ard Biesheuvel   mac80211: aes-cma...
10
  #include <crypto/hash.h>
765cb46a3   Jouni Malinen   mac80211: 802.11w...
11

26717828b   Ard Biesheuvel   mac80211: aes-cma...
12
13
14
  struct crypto_shash *ieee80211_aes_cmac_key_setup(const u8 key[],
  						  size_t key_len);
  void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad,
765cb46a3   Jouni Malinen   mac80211: 802.11w...
15
  			const u8 *data, size_t data_len, u8 *mic);
26717828b   Ard Biesheuvel   mac80211: aes-cma...
16
  void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad,
56c52da2d   Jouni Malinen   mac80111: Add BIP...
17
  			    const u8 *data, size_t data_len, u8 *mic);
26717828b   Ard Biesheuvel   mac80211: aes-cma...
18
  void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm);
765cb46a3   Jouni Malinen   mac80211: 802.11w...
19
20
  
  #endif /* AES_CMAC_H */