Searched refs:mic (Results 1 - 25 of 34) sorted by relevance

12

/drivers/isdn/hisax/
H A Dmic.c1 /* $Id: mic.c,v 1.12.2.4 2004/01/13 23:48:39 keil Exp $
3 * low level stuff for mic cards
68 return (readreg(cs->hw.mic.adr, cs->hw.mic.isac, offset));
74 writereg(cs->hw.mic.adr, cs->hw.mic.isac, offset, value);
80 readfifo(cs->hw.mic.adr, cs->hw.mic.isac, 0, data, size);
86 writefifo(cs->hw.mic.adr, cs->hw.mic
[all...]
H A DMakefile45 hisax-$(CONFIG_HISAX_MIC) += mic.o isac.o arcofi.o hscx.o
/drivers/net/wireless/orinoco/
H A Dmic.h20 u8 *data, size_t data_len, u8 *mic);
H A Dmic.c12 #include "mic.h"
48 u8 *data, size_t data_len, u8 *mic)
78 mic);
46 orinoco_mic(struct crypto_hash *tfm_michael, u8 *key, u8 *da, u8 *sa, u8 priority, u8 *data, size_t data_len, u8 *mic) argument
H A DMakefile4 orinoco-objs := main.o fw.o hw.o mic.o scan.o wext.o hermes_dld.o hermes.o cfg.o
H A Dorinoco.h204 u8 *mic);
H A Dmain.c98 #include "mic.h"
417 u8 *mic = &mic_buf[0]; local
422 *mic = skb->data[skb->len - 1];
423 mic++;
429 len, mic);
979 u8 mic[MICHAEL_MIC_LEN]; local
1001 skb->data, skb->len, &mic[0]);
1003 if (memcmp(mic, rxmic,
/drivers/xen/
H A Dmcelog.c221 struct mcinfo_common *mic; local
227 mic = NULL;
228 x86_mcinfo_lookup(&mic, mi, MC_TYPE_GLOBAL);
229 if (unlikely(!mic)) {
236 mc_global = (struct mcinfo_global *)mic;
253 mic = NULL;
254 x86_mcinfo_lookup(&mic, mi, MC_TYPE_BANK);
255 if (unlikely(!mic)) {
261 if ((!mic) || (mic
[all...]
/drivers/usb/wusbcore/
H A Dcrypto.c148 * @mic: buffer for placing the computed MIC (Message Integrity
199 struct crypto_cipher *tfm_aes, void *mic,
283 bytewise_xor(mic, &ax, iv, 8);
373 u8 mic[8]; local
395 result = wusb_oob_mic(mic, stv_hsmic_key, &stv_hsmic_n, &stv_hsmic_hs);
398 else if (memcmp(stv_hsmic_hs.MIC, mic, sizeof(mic))) {
408 wusb_key_dump(mic, sizeof(mic));
198 wusb_ccm_mac(struct crypto_blkcipher *tfm_cbc, struct crypto_cipher *tfm_aes, void *mic, const struct aes_ccm_nonce *n, const struct aes_ccm_label *a, const void *b, size_t blen) argument
H A Dsecurity.c372 u8 mic[8]; local
461 result = wusb_oob_mic(mic, keydvt_out.kck, &ccm_n, &hs[1]);
468 if (memcmp(hs[1].MIC, mic, sizeof(hs[1].MIC))) {
528 memset(mic, 0, sizeof(mic));
/drivers/staging/rtl8192e/
H A Drtllib_crypt_ccmp.c228 u8 *mic; local
234 mic = skb_put(skb, CCMP_MIC_LEN);
256 mic[i] = b[i] ^ s0[i];
316 u8 *mic = skb->data + skb->len - CCMP_MIC_LEN; local
324 xor_block(mic, b, CCMP_MIC_LEN);
342 if (memcmp(mic, a, CCMP_MIC_LEN) != 0) {
H A Drtllib_crypt_tkip.c499 u8 *data, size_t data_len, u8 *mic)
517 return crypto_hash_digest(&desc, sg, data_len + 16, mic);
604 u8 mic[8]; local
617 skb->data + hdr_len, skb->len - 8 - hdr_len, mic))
620 if (memcmp(mic, skb->data + skb->len - 8, 8) != 0) {
629 memcmp(mic, skb->data + skb->len - 8, 8) != 0);
498 michael_mic(struct crypto_hash *tfm_michael, u8 *key, u8 *hdr, u8 *data, size_t data_len, u8 *mic) argument
/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_crypt_ccmp.c212 // mic = skb_put(skb, CCMP_MIC_LEN);
236 u8 *mic; local
242 //mic is moved to here by john
243 mic = skb_put(skb, CCMP_MIC_LEN);
264 mic[i] = b[i] ^ s0[i];
329 u8 *mic = skb->data + skb->len - CCMP_MIC_LEN; local
337 xor_block(mic, b, CCMP_MIC_LEN);
355 if (memcmp(mic, a, CCMP_MIC_LEN) != 0) {
H A Dieee80211_crypt_tkip.c503 u8 *data, size_t data_len, u8 *mic)
522 return crypto_hash_digest(&desc, sg, data_len + 16, mic);
613 u8 mic[8]; local
630 skb->data + hdr_len, skb->len - 8 - hdr_len, mic))
632 if (memcmp(mic, skb->data + skb->len - 8, 8) != 0) {
502 michael_mic(struct crypto_hash *tfm_michael, u8 *key, u8 *hdr, u8 *data, size_t data_len, u8 *mic) argument
/drivers/net/wireless/ti/wl12xx/
H A Ddebugfs.c91 WL12XX_DEBUGFS_FWSTATS_FILE(mic, rx_pkts, "%u");
92 WL12XX_DEBUGFS_FWSTATS_FILE(mic, calc_failure, "%u");
201 DEBUGFS_FWSTATS_ADD(mic, rx_pkts);
202 DEBUGFS_FWSTATS_ADD(mic, calc_failure);
H A Dacx.h265 struct wl12xx_acx_mic_statistics mic; member in struct:wl12xx_acx_statistics
/drivers/extcon/
H A Dextcon-arizona.c93 bool mic; member in struct:arizona_extcon_info
471 bool *mic)
483 /* Only check the mic directly if we didn't already ID it */
485 dev_dbg(arizona->dev, "Measuring mic\n");
520 * If we measure the mic as high impedance
523 dev_dbg(arizona->dev, "Detected mic\n");
524 *mic = true;
547 bool mic = false; local
582 ret = arizona_hpdet_do_id(info, &reading, &mic);
616 /* If we have a mic the
470 arizona_hpdet_do_id(struct arizona_extcon_info *info, int *reading, bool *mic) argument
692 bool mic; local
[all...]
/drivers/net/wireless/ti/wl1251/
H A 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);
319 DEBUGFS_FWSTATS_DEL(mic, calc_failure);
419 DEBUGFS_FWSTATS_ADD(mic, rx_pkts);
420 DEBUGFS_FWSTATS_ADD(mic, calc_failure);
/drivers/misc/
H A DMakefile55 obj-y += mic/
/drivers/staging/vt6656/
H A Drxtx.c605 head = &tx_head->tx_rts.tx.mic.head;
632 head = &tx_head->tx_cts.tx.mic.head;
652 head = &tx_head->tx_ab.tx.mic.head;
688 tx_head.tx_rts.tx.mic.hdr;
695 *mic_hdr = &tx_buffer->tx_head.tx_cts.tx.mic.hdr;
701 *mic_hdr = &tx_buffer->tx_head.tx_ab.tx.mic.hdr;
H A Drxtx.h204 struct vnt_tx_mic_hdr mic; member in union:vnt_tx
/drivers/staging/rtl8188eu/core/
H A Drtw_xmit.c630 u8 *pframe, *payload, mic[8]; local
649 /* encode mic code */
660 /* start to calculate the mic code */
668 /* start to calculate the mic code */
717 rtw_secgetmic(&micdata, &(mic[0]));
718 RT_TRACE(_module_rtl871x_xmit_c_, _drv_err_, ("xmitframe_addmic: before add mic code!!!\n"));
720 RT_TRACE(_module_rtl871x_xmit_c_, _drv_err_, ("xmitframe_addmic: mic[0]=0x%.2x , mic[1]=0x%.2x , mic[2]= 0x%.2x, mic[
[all...]
/drivers/staging/rtl8723au/core/
H A Drtw_xmit.c656 u8 *pframe, *payload, mic[8]; local
682 /* encode mic code */
695 /* start to calculate the mic code */
702 /* start to calculate the mic code */
779 rtw_secgetmic23a(&micdata, &mic[0]);
781 ("xmitframe_addmic: before add mic code!!\n"));
786 ("xmitframe_addmic: mic[0]= 0x%.2x , mic[1]="
787 "0x%.2x , mic[2]= 0x%.2x , mic[
[all...]
/drivers/net/wireless/
H A Dairo.c841 __be32 mic; member in struct:MICBuffer
955 u64 accum; // accumulated mic, reduced to u32 in final()
1150 static int decapsulate(struct airo_info *ai, MICBuffer *mic, etherHead *pPacket, u16 payLen);
1308 /* Age current mic Context */
1318 /* Give key to mic seed */
1322 /* micinit - Initialize mic seed */
1334 /* So next time we have a valid key and mic is enabled, we will
1384 * PacketTxLen will be updated with the mic'd packets size.
1387 * be big enough to hold the largets mic message possible.
1394 static int encapsulate(struct airo_info *ai ,etherHead *frame, MICBuffer *mic, in argument
1450 decapsulate(struct airo_info *ai, MICBuffer *mic, etherHead *eth, u16 payLen) argument
[all...]
/drivers/staging/rtl8712/
H A Drtl871x_security.c1046 u8 mic[8]; local
1113 mic[j] = aes_out[j];
1116 pframe[payload_index+j] = mic[j];
1219 u8 mic[8]; local
1232 /*(plen including llc, payload and mic) */
1284 /* start to calculate the mic */
1321 mic[j] = aes_out[j];
1324 message[payload_index+j] = mic[j];
1358 /* compare the mic */

Completed in 352 milliseconds

12