Home
last modified time | relevance | path

Searched refs:aes_cmac (Results 1 - 24 of 24) sorted by relevance

/kernel/linux/linux-5.10/net/mac80211/
H A Dwpa.c24 #include "aes_cmac.h"
985 ieee80211_aes_cmac(key->u.aes_cmac.tfm, aad, in ieee80211_crypto_aes_cmac_encrypt()
1028 ieee80211_aes_cmac_256(key->u.aes_cmac.tfm, aad, in ieee80211_crypto_aes_cmac_256_encrypt()
1060 if (memcmp(ipn, key->u.aes_cmac.rx_pn, 6) <= 0) { in ieee80211_crypto_aes_cmac_decrypt()
1061 key->u.aes_cmac.replays++; in ieee80211_crypto_aes_cmac_decrypt()
1068 ieee80211_aes_cmac(key->u.aes_cmac.tfm, aad, in ieee80211_crypto_aes_cmac_decrypt()
1071 key->u.aes_cmac.icverrors++; in ieee80211_crypto_aes_cmac_decrypt()
1076 memcpy(key->u.aes_cmac.rx_pn, ipn, 6); in ieee80211_crypto_aes_cmac_decrypt()
1110 if (memcmp(ipn, key->u.aes_cmac.rx_pn, 6) <= 0) { in ieee80211_crypto_aes_cmac_256_decrypt()
1111 key->u.aes_cmac in ieee80211_crypto_aes_cmac_256_decrypt()
[all...]
H A Dkey.c26 #include "aes_cmac.h"
626 key->u.aes_cmac.rx_pn[j] = in ieee80211_key_alloc()
632 key->u.aes_cmac.tfm = in ieee80211_key_alloc()
634 if (IS_ERR(key->u.aes_cmac.tfm)) { in ieee80211_key_alloc()
635 err = PTR_ERR(key->u.aes_cmac.tfm); in ieee80211_key_alloc()
709 ieee80211_aes_cmac_key_free(key->u.aes_cmac.tfm); in ieee80211_key_free_common()
1174 pn = key->u.aes_cmac.rx_pn; in ieee80211_get_key_rx_seq()
1175 memcpy(seq->aes_cmac.pn, pn, IEEE80211_CMAC_PN_LEN); in ieee80211_get_key_rx_seq()
1227 pn = key->u.aes_cmac.rx_pn; in ieee80211_set_key_rx_seq()
1228 memcpy(pn, seq->aes_cmac in ieee80211_set_key_rx_seq()
[all...]
H A DMakefile22 aes_cmac.o \
H A Ddebugfs_key.c191 rpn = key->u.aes_cmac.rx_pn; in key_rx_spec_read()
240 key->u.aes_cmac.replays); in key_replays_read()
269 key->u.aes_cmac.icverrors); in key_icverrors_read()
H A Dkey.h100 } aes_cmac; member
H A Dcfg.c632 offsetof(typeof(kseq), aes_cmac)); in ieee80211_get_key() local
/kernel/linux/linux-6.6/net/mac80211/
H A Dwpa.c24 #include "aes_cmac.h"
862 ieee80211_aes_cmac(key->u.aes_cmac.tfm, aad, in ieee80211_crypto_aes_cmac_encrypt()
905 ieee80211_aes_cmac_256(key->u.aes_cmac.tfm, aad, in ieee80211_crypto_aes_cmac_256_encrypt()
937 if (memcmp(ipn, key->u.aes_cmac.rx_pn, 6) <= 0) { in ieee80211_crypto_aes_cmac_decrypt()
938 key->u.aes_cmac.replays++; in ieee80211_crypto_aes_cmac_decrypt()
945 ieee80211_aes_cmac(key->u.aes_cmac.tfm, aad, in ieee80211_crypto_aes_cmac_decrypt()
948 key->u.aes_cmac.icverrors++; in ieee80211_crypto_aes_cmac_decrypt()
953 memcpy(key->u.aes_cmac.rx_pn, ipn, 6); in ieee80211_crypto_aes_cmac_decrypt()
987 if (memcmp(ipn, key->u.aes_cmac.rx_pn, 6) <= 0) { in ieee80211_crypto_aes_cmac_256_decrypt()
988 key->u.aes_cmac in ieee80211_crypto_aes_cmac_256_decrypt()
[all...]
H A Dkey.c26 #include "aes_cmac.h"
685 key->u.aes_cmac.rx_pn[j] = in ieee80211_key_alloc()
691 key->u.aes_cmac.tfm = in ieee80211_key_alloc()
693 if (IS_ERR(key->u.aes_cmac.tfm)) { in ieee80211_key_alloc()
694 err = PTR_ERR(key->u.aes_cmac.tfm); in ieee80211_key_alloc()
753 ieee80211_aes_cmac_key_free(key->u.aes_cmac.tfm); in ieee80211_key_free_common()
1275 pn = key->u.aes_cmac.rx_pn; in ieee80211_get_key_rx_seq()
1276 memcpy(seq->aes_cmac.pn, pn, IEEE80211_CMAC_PN_LEN); in ieee80211_get_key_rx_seq()
1328 pn = key->u.aes_cmac.rx_pn; in ieee80211_set_key_rx_seq()
1329 memcpy(pn, seq->aes_cmac in ieee80211_set_key_rx_seq()
[all...]
H A DMakefile23 aes_cmac.o \
H A Ddebugfs_key.c191 rpn = key->u.aes_cmac.rx_pn; in key_rx_spec_read()
240 key->u.aes_cmac.replays); in key_replays_read()
269 key->u.aes_cmac.icverrors); in key_icverrors_read()
H A Dkey.h99 } aes_cmac; member
H A Dcfg.c723 offsetof(typeof(kseq), aes_cmac)); in ieee80211_get_key() local
/kernel/linux/linux-5.10/drivers/staging/wfx/
H A Dkey.c151 memcpy(msg->ipn, seq->aes_cmac.pn, sizeof(seq->aes_cmac.pn)); in fill_aes_cmac_group()
152 memreverse(msg->ipn, sizeof(seq->aes_cmac.pn)); in fill_aes_cmac_group()
/kernel/linux/linux-6.6/drivers/net/wireless/silabs/wfx/
H A Dkey.c144 memcpy(msg->ipn, seq->aes_cmac.pn, sizeof(seq->aes_cmac.pn)); in fill_aes_cmac_group()
145 memreverse(msg->ipn, sizeof(seq->aes_cmac.pn)); in fill_aes_cmac_group()
/kernel/linux/linux-6.6/fs/smb/client/
H A Dsmb2transport.c39 rc = cifs_alloc_hash("cmac(aes)", &p->aes_cmac); in smb3_crypto_shash_allocate()
59 rc = cifs_alloc_hash("cmac(aes)", &p->aes_cmac); in smb311_crypto_shash_allocate()
70 cifs_free_hash(&p->aes_cmac); in smb311_crypto_shash_allocate()
582 shash = server->secmech.aes_cmac; in smb3_calc_signature()
595 * we already allocate aes_cmac when we init smb3 signing key, in smb3_calc_signature()
H A Dcifsencrypt.c846 cifs_free_hash(&server->secmech.aes_cmac); in cifs_crypto_secmech_release()
H A Dcifsglob.h162 struct shash_desc *aes_cmac; /* block-cipher based MAC function, for SMB3 signatures */ member
/kernel/linux/linux-5.10/net/bluetooth/
H A Dsmp.c66 /* Maximum message length that can be passed to aes_cmac */
169 static int aes_cmac(struct crypto_shash *tfm, const u8 k[16], const u8 *m, in aes_cmac() function
223 err = aes_cmac(tfm_cmac, x, m, sizeof(m), res); in smp_f4()
253 err = aes_cmac(tfm_cmac, salt, w, 32, t); in smp_f5()
268 err = aes_cmac(tfm_cmac, t, m, sizeof(m), mackey); in smp_f5()
276 err = aes_cmac(tfm_cmac, t, m, sizeof(m), ltk); in smp_f5()
304 err = aes_cmac(tfm_cmac, w, m, sizeof(m), res); in smp_f6()
327 err = aes_cmac(tfm_cmac, x, m, sizeof(m), tmp); in smp_g2()
346 err = aes_cmac(tfm_cmac, w, key_id, 4, res); in smp_h6()
362 err = aes_cmac(tfm_cma in smp_h7()
[all...]
/kernel/linux/linux-6.6/net/bluetooth/
H A Dsmp.c67 /* Maximum message length that can be passed to aes_cmac */
170 static int aes_cmac(struct crypto_shash *tfm, const u8 k[16], const u8 *m, in aes_cmac() function
224 err = aes_cmac(tfm_cmac, x, m, sizeof(m), res); in smp_f4()
254 err = aes_cmac(tfm_cmac, salt, w, 32, t); in smp_f5()
269 err = aes_cmac(tfm_cmac, t, m, sizeof(m), mackey); in smp_f5()
277 err = aes_cmac(tfm_cmac, t, m, sizeof(m), ltk); in smp_f5()
305 err = aes_cmac(tfm_cmac, w, m, sizeof(m), res); in smp_f6()
328 err = aes_cmac(tfm_cmac, x, m, sizeof(m), tmp); in smp_g2()
347 err = aes_cmac(tfm_cmac, w, key_id, 4, res); in smp_h6()
363 err = aes_cmac(tfm_cma in smp_h7()
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dd3.c1843 BUILD_BUG_ON(sizeof(seq->aes_cmac.pn) != sizeof(key->ipn)); in iwl_mvm_d3_set_igtk_bigtk_ipn()
1844 memcpy(seq->aes_cmac.pn, key->ipn, sizeof(seq->aes_cmac.pn)); in iwl_mvm_d3_set_igtk_bigtk_ipn()
H A Dsta.c3746 pn = seq.aes_cmac.pn; in iwl_mvm_send_sta_igtk()
/kernel/linux/linux-5.10/include/net/
H A Dmac80211.h1873 * @aes_cmac: PN data, most significant byte first (big endian,
1892 } aes_cmac; member
/kernel/linux/linux-6.6/include/net/
H A Dmac80211.h2098 * @aes_cmac: PN data, most significant byte first (big endian,
2117 } aes_cmac; member
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dsta.c3434 pn = seq.aes_cmac.pn; in iwl_mvm_send_sta_igtk()

Completed in 71 milliseconds