Home
last modified time | relevance | path

Searched refs:mic_iv (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/drivers/staging/rtl8723bs/core/
Drtw_security.c692 static void construct_mic_iv(u8 *mic_iv, in construct_mic_iv() argument
702 mic_iv[0] = 0x59; in construct_mic_iv()
705 mic_iv[1] = mpdu[30] & 0x0f; /* QoS_TC */ in construct_mic_iv()
708 mic_iv[1] = mpdu[24] & 0x0f; /* mute bits 7-4 */ in construct_mic_iv()
711 mic_iv[1] = 0x00; in construct_mic_iv()
715 mic_iv[1] |= BIT(4); in construct_mic_iv()
718 mic_iv[i] = mpdu[i + 8]; /* mic_iv[2:7] = A2[0:5] = mpdu[10:15] */ in construct_mic_iv()
721 mic_iv[i] = pn_vector[i - 8]; /* mic_iv[8:13] = PN[0:5] */ in construct_mic_iv()
724 mic_iv[i] = pn_vector[13 - i]; /* mic_iv[8:13] = PN[5:0] */ in construct_mic_iv()
726 mic_iv[14] = (unsigned char) (payload_length / 256); in construct_mic_iv()
[all …]
/linux-6.1.9/drivers/staging/r8188eu/core/
Drtw_security.c826 static void construct_mic_iv(u8 *mic_iv, int qc_exists, int a4_exists, u8 *mpdu, in construct_mic_iv() argument
831 mic_iv[0] = 0x59; in construct_mic_iv()
833 mic_iv[1] = mpdu[30] & 0x0f; /* QoS_TC */ in construct_mic_iv()
835 mic_iv[1] = mpdu[24] & 0x0f; /* mute bits 7-4 */ in construct_mic_iv()
837 mic_iv[1] = 0x00; in construct_mic_iv()
839 mic_iv[i] = mpdu[i + 8]; /* mic_iv[2:7] = A2[0:5] = mpdu[10:15] */ in construct_mic_iv()
841 mic_iv[i] = pn_vector[13 - i]; /* mic_iv[8:13] = PN[5:0] */ in construct_mic_iv()
842 mic_iv[14] = (unsigned char)(payload_length / 256); in construct_mic_iv()
843 mic_iv[15] = (unsigned char)(payload_length % 256); in construct_mic_iv()
963 u8 mic_iv[16]; in aes_cipher() local
[all …]
/linux-6.1.9/drivers/staging/rtl8712/
Drtl871x_security.c893 static void construct_mic_iv(u8 *mic_iv, sint qc_exists, sint a4_exists, in construct_mic_iv() argument
898 mic_iv[0] = 0x59; in construct_mic_iv()
900 mic_iv[1] = mpdu[30] & 0x0f; /* QoS_TC */ in construct_mic_iv()
902 mic_iv[1] = mpdu[24] & 0x0f; /* mute bits 7-4 */ in construct_mic_iv()
904 mic_iv[1] = 0x00; in construct_mic_iv()
906 mic_iv[i] = mpdu[i + 8]; in construct_mic_iv()
908 mic_iv[i] = pn_vector[13 - i]; /* mic_iv[8:13] = PN[5:0] */ in construct_mic_iv()
909 mic_iv[14] = (unsigned char)(payload_length / 256); in construct_mic_iv()
910 mic_iv[15] = (unsigned char)(payload_length % 256); in construct_mic_iv()
1020 u8 mic_iv[16]; in aes_cipher() local
[all …]