Lines Matching refs:mic_iv
894 static void construct_mic_iv(u8 *mic_iv, sint qc_exists, sint a4_exists, in construct_mic_iv() argument
899 mic_iv[0] = 0x59; in construct_mic_iv()
901 mic_iv[1] = mpdu[30] & 0x0f; /* QoS_TC */ in construct_mic_iv()
903 mic_iv[1] = mpdu[24] & 0x0f; /* mute bits 7-4 */ in construct_mic_iv()
905 mic_iv[1] = 0x00; in construct_mic_iv()
907 mic_iv[i] = mpdu[i + 8]; in construct_mic_iv()
909 mic_iv[i] = pn_vector[13 - i]; /* mic_iv[8:13] = PN[5:0] */ in construct_mic_iv()
910 mic_iv[14] = (unsigned char)(payload_length / 256); in construct_mic_iv()
911 mic_iv[15] = (unsigned char)(payload_length % 256); in construct_mic_iv()
1021 u8 mic_iv[16]; in aes_cipher() local
1035 memset((void *)mic_iv, 0, 16); in aes_cipher()
1070 construct_mic_iv(mic_iv, qc_exists, a4_exists, pframe, plen, pn_vector); in aes_cipher()
1078 aes128k128d(key, mic_iv, aes_out); in aes_cipher()
1194 u8 mic_iv[16]; in aes_decipher() local
1207 memset((void *)mic_iv, 0, 16); in aes_decipher()
1275 construct_mic_iv(mic_iv, qc_exists, a4_exists, message, plen - 8, in aes_decipher()
1284 aes128k128d(key, mic_iv, aes_out); in aes_decipher()