Home
last modified time | relevance | path

Searched refs:mic (Results 1 – 25 of 31) sorted by relevance

12

/drivers/isdn/hisax/
Dmic.c68 return (readreg(cs->hw.mic.adr, cs->hw.mic.isac, offset)); in ReadISAC()
74 writereg(cs->hw.mic.adr, cs->hw.mic.isac, offset, value); in WriteISAC()
80 readfifo(cs->hw.mic.adr, cs->hw.mic.isac, 0, data, size); in ReadISACfifo()
86 writefifo(cs->hw.mic.adr, cs->hw.mic.isac, 0, data, size); in WriteISACfifo()
92 return (readreg(cs->hw.mic.adr, in ReadHSCX()
93 cs->hw.mic.hscx, offset + (hscx ? 0x40 : 0))); in ReadHSCX()
99 writereg(cs->hw.mic.adr, in WriteHSCX()
100 cs->hw.mic.hscx, offset + (hscx ? 0x40 : 0), value); in WriteHSCX()
107 #define READHSCX(cs, nr, reg) readreg(cs->hw.mic.adr, \
108 cs->hw.mic.hscx, reg + (nr ? 0x40 : 0))
[all …]
DMakefile45 hisax-$(CONFIG_HISAX_MIC) += mic.o isac.o arcofi.o hscx.o
/drivers/usb/wusbcore/
Dcrypto.c199 struct crypto_cipher *tfm_aes, void *mic, in wusb_ccm_mac() argument
285 bytewise_xor(mic, &ax, iv, 8); in wusb_ccm_mac()
375 u8 mic[8]; in wusb_oob_mic_verify() local
397 result = wusb_oob_mic(mic, stv_hsmic_key, &stv_hsmic_n, &stv_hsmic_hs); in wusb_oob_mic_verify()
400 else if (memcmp(stv_hsmic_hs.MIC, mic, sizeof(mic))) { in wusb_oob_mic_verify()
410 wusb_key_dump(mic, sizeof(mic)); in wusb_oob_mic_verify()
Dsecurity.c353 u8 mic[8]; in wusb_dev_4way_handshake() local
442 result = wusb_oob_mic(mic, keydvt_out.kck, &ccm_n, &hs[1]); in wusb_dev_4way_handshake()
449 if (memcmp(hs[1].MIC, mic, sizeof(hs[1].MIC))) { in wusb_dev_4way_handshake()
509 memset(mic, 0, sizeof(mic)); in wusb_dev_4way_handshake()
/drivers/staging/rtl8192e/
Drtllib_crypt_ccmp.c226 u8 *mic; in rtllib_ccmp_encrypt() local
232 mic = skb_put(skb, CCMP_MIC_LEN); in rtllib_ccmp_encrypt()
254 mic[i] = b[i] ^ s0[i]; in rtllib_ccmp_encrypt()
314 u8 *mic = skb->data + skb->len - CCMP_MIC_LEN; in rtllib_ccmp_decrypt() local
322 xor_block(mic, b, CCMP_MIC_LEN); in rtllib_ccmp_decrypt()
340 if (memcmp(mic, a, CCMP_MIC_LEN) != 0) { in rtllib_ccmp_decrypt()
Drtllib_crypt_tkip.c497 u8 *data, size_t data_len, u8 *mic) in michael_mic() argument
515 return crypto_hash_digest(&desc, sg, data_len + 16, mic); in michael_mic()
602 u8 mic[8]; in rtllib_michael_mic_verify() local
615 skb->data + hdr_len, skb->len - 8 - hdr_len, mic)) in rtllib_michael_mic_verify()
618 if (memcmp(mic, skb->data + skb->len - 8, 8) != 0) { in rtllib_michael_mic_verify()
626 memcmp(mic, skb->data + skb->len - 8, 8) != 0); in rtllib_michael_mic_verify()
/drivers/staging/rtl8187se/ieee80211/
Dieee80211_crypt_ccmp.c199 u8 *mic; in ieee80211_ccmp_encrypt() local
235 mic = skb_put(skb, CCMP_MIC_LEN); in ieee80211_ccmp_encrypt()
256 mic[i] = b[i] ^ s0[i]; in ieee80211_ccmp_encrypt()
269 u8 *mic = skb->data + skb->len - CCMP_MIC_LEN; in ieee80211_ccmp_decrypt() local
325 xor_block(mic, b, CCMP_MIC_LEN); in ieee80211_ccmp_decrypt()
343 if (memcmp(mic, a, CCMP_MIC_LEN) != 0) { in ieee80211_ccmp_decrypt()
Dieee80211_crypt_tkip.c471 u8 * data, size_t data_len, u8 * mic) in michael_mic() argument
490 return crypto_hash_digest(&desc, sg, data_len + 16, mic); in michael_mic()
581 u8 mic[8]; in ieee80211_michael_mic_verify() local
598 skb->data + hdr_len, skb->len - 8 - hdr_len, mic)) in ieee80211_michael_mic_verify()
601 if (memcmp(mic, skb->data + skb->len - 8, 8) != 0) { in ieee80211_michael_mic_verify()
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_ccmp.c236 u8 *mic; in ieee80211_ccmp_encrypt() local
243 mic = skb_put(skb, CCMP_MIC_LEN); in ieee80211_ccmp_encrypt()
264 mic[i] = b[i] ^ s0[i]; in ieee80211_ccmp_encrypt()
329 u8 *mic = skb->data + skb->len - CCMP_MIC_LEN; in ieee80211_ccmp_decrypt() local
337 xor_block(mic, b, CCMP_MIC_LEN); in ieee80211_ccmp_decrypt()
355 if (memcmp(mic, a, CCMP_MIC_LEN) != 0) { in ieee80211_ccmp_decrypt()
Dieee80211_crypt_tkip.c503 u8 * data, size_t data_len, u8 * mic) in michael_mic() argument
522 return crypto_hash_digest(&desc, sg, data_len + 16, mic); in michael_mic()
613 u8 mic[8]; in ieee80211_michael_mic_verify() local
630 skb->data + hdr_len, skb->len - 8 - hdr_len, mic)) in ieee80211_michael_mic_verify()
632 if (memcmp(mic, skb->data + skb->len - 8, 8) != 0) { in ieee80211_michael_mic_verify()
/drivers/net/wireless/orinoco/
Dmic.c48 u8 *data, size_t data_len, u8 *mic) in orinoco_mic() argument
78 mic); in orinoco_mic()
Dmic.h20 u8 *data, size_t data_len, u8 *mic);
DMakefile4 orinoco-objs := main.o fw.o hw.o mic.o scan.o wext.o hermes_dld.o hermes.o cfg.o
Dmain.c417 u8 *mic = &mic_buf[0]; in orinoco_process_xmit_skb() local
422 *mic = skb->data[skb->len - 1]; in orinoco_process_xmit_skb()
423 mic++; in orinoco_process_xmit_skb()
429 len, mic); in orinoco_process_xmit_skb()
983 u8 mic[MICHAEL_MIC_LEN]; in orinoco_rx() local
1005 skb->data, skb->len, &mic[0]); in orinoco_rx()
1007 if (memcmp(mic, rxmic, in orinoco_rx()
Dorinoco.h207 u8 *mic);
Dorinoco_usb.c1199 u8 mic[MICHAEL_MIC_LEN + 1]; in ezusb_xmit() local
1248 &mic[0]); in ezusb_xmit()
1262 u8 *m = mic; in ezusb_xmit()
/drivers/net/wireless/wl1251/
Ddebugfs.c178 DEBUGFS_FWSTATS_FILE(mic, rx_pkts, 20, "%u");
179 DEBUGFS_FWSTATS_FILE(mic, calc_failure, 20, "%u");
318 DEBUGFS_FWSTATS_DEL(mic, rx_pkts); in wl1251_debugfs_delete_files()
319 DEBUGFS_FWSTATS_DEL(mic, calc_failure); in wl1251_debugfs_delete_files()
419 DEBUGFS_FWSTATS_ADD(mic, rx_pkts); in wl1251_debugfs_add_files()
420 DEBUGFS_FWSTATS_ADD(mic, calc_failure); in wl1251_debugfs_add_files()
/drivers/net/wireless/bcmdhd/common/include/proto/
Deapol.h108 unsigned char mic[EAPOL_WPA_KEY_MIC_LEN]; /* Key MIC */
/drivers/staging/rtl8712/
Drtl871x_security.c1045 u8 mic[8]; in aes_cipher() local
1112 mic[j] = aes_out[j]; in aes_cipher()
1115 pframe[payload_index+j] = mic[j]; in aes_cipher()
1218 u8 mic[8]; in aes_decipher() local
1319 mic[j] = aes_out[j]; in aes_decipher()
1322 message[payload_index+j] = mic[j]; in aes_decipher()
Drtl871x_xmit.c351 u8 *pframe, *payload, mic[8]; in xmitframe_addmic() local
441 r8712_secgetmic(&micdata, &(mic[0])); in xmitframe_addmic()
444 memcpy(payload, &(mic[0]), 8); in xmitframe_addmic()
/drivers/staging/wlags49_h2/
Dhcfdef.h595 #define MIC_RX_RTN( mic, dw )
596 #define MIC_TX_RTN( mic, dw )
/drivers/net/wireless/
Dairo.c840 __be32 mic; member
1149 static int decapsulate(struct airo_info *ai, MICBuffer *mic, etherHead *pPacket, u16 payLen);
1393 static int encapsulate(struct airo_info *ai ,etherHead *frame, MICBuffer *mic, int payLen) in encapsulate() argument
1408 mic->typelen = htons(payLen + 16); //Length of Mic'd packet in encapsulate()
1410 memcpy(&mic->u.snap, micsnap, sizeof(micsnap)); // Add Snap in encapsulate()
1413 mic->seq = htonl(context->tx); in encapsulate()
1418 emmh32_update(&context->seed,(u8*)&mic->typelen,10); // Type/Length and Snap in encapsulate()
1419 emmh32_update(&context->seed,(u8*)&mic->seq,sizeof(mic->seq)); //SEQ in encapsulate()
1421 emmh32_final(&context->seed, (u8*)&mic->mic); in encapsulate()
1424 mic->typelen = 0; //Let NIC know it could be an oversized packet in encapsulate()
[all …]
/drivers/net/wireless/wl12xx/
Ddebugfs.c187 DEBUGFS_FWSTATS_FILE(mic, rx_pkts, "%u");
188 DEBUGFS_FWSTATS_FILE(mic, calc_failure, "%u");
1074 DEBUGFS_FWSTATS_ADD(mic, rx_pkts); in wl1271_debugfs_add_files()
1075 DEBUGFS_FWSTATS_ADD(mic, calc_failure); in wl1271_debugfs_add_files()
/drivers/video/
Dimsttfb.c587 __u8 tcc, mxc, lckl_n, mic; in set_imstt_regvals_tvp() local
621 mic = 0x08; in set_imstt_regvals_tvp()
637 par->cmap_regs[TVPIDATA] = mic; eieio(); in set_imstt_regvals_tvp()
/drivers/staging/telephony/
Dixj.h298 unsigned int mic:1; member

12