Searched refs:ctr_preload (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/drivers/staging/r8188eu/core/ |
D | rtw_security.c | 638 static void construct_ctr_preload(u8 *ctr_preload, int a4_exists, int qc_exists, u8 *mpdu, u8 *pn_v… 921 static void construct_ctr_preload(u8 *ctr_preload, int a4_exists, int qc_exists, u8 *mpdu, u8 *pn_v… in construct_ctr_preload() argument 926 ctr_preload[i] = 0x00; in construct_ctr_preload() 929 ctr_preload[0] = 0x01; /* flag */ in construct_ctr_preload() 931 ctr_preload[1] = mpdu[30] & 0x0f; /* QoC_Control */ in construct_ctr_preload() 933 ctr_preload[1] = mpdu[24] & 0x0f; in construct_ctr_preload() 936 ctr_preload[i] = mpdu[i + 8]; /* ctr_preload[2:7] = A2[0:5] = mpdu[10:15] */ in construct_ctr_preload() 938 ctr_preload[i] = pn_vector[13 - i]; /* ctr_preload[8:13] = PN[5:0] */ in construct_ctr_preload() 939 ctr_preload[14] = (unsigned char)(c / 256); /* Ctr */ in construct_ctr_preload() 940 ctr_preload[15] = (unsigned char)(c % 256); in construct_ctr_preload() [all …]
|
/linux-6.1.9/drivers/staging/rtl8723bs/core/ |
D | rtw_security.c | 661 static void construct_ctr_preload(u8 *ctr_preload, 816 static void construct_ctr_preload(u8 *ctr_preload, in construct_ctr_preload() argument 827 ctr_preload[i] = 0x00; in construct_ctr_preload() 830 ctr_preload[0] = 0x01; /* flag */ in construct_ctr_preload() 832 ctr_preload[1] = mpdu[30] & 0x0f; /* QoC_Control */ in construct_ctr_preload() 834 ctr_preload[1] = mpdu[24] & 0x0f; in construct_ctr_preload() 838 ctr_preload[1] |= BIT(4); in construct_ctr_preload() 841 ctr_preload[i] = mpdu[i + 8]; /* ctr_preload[2:7] = A2[0:5] = mpdu[10:15] */ in construct_ctr_preload() 844 ctr_preload[i] = pn_vector[i - 8]; /* ctr_preload[8:13] = PN[0:5] */ in construct_ctr_preload() 847 ctr_preload[i] = pn_vector[13 - i]; /* ctr_preload[8:13] = PN[5:0] */ in construct_ctr_preload() [all …]
|
/linux-6.1.9/drivers/staging/rtl8712/ |
D | rtl871x_security.c | 979 static void construct_ctr_preload(u8 *ctr_preload, in construct_ctr_preload() argument 986 ctr_preload[i] = 0x00; in construct_ctr_preload() 988 ctr_preload[0] = 0x01; /* flag */ in construct_ctr_preload() 990 ctr_preload[1] = mpdu[30] & 0x0f; in construct_ctr_preload() 992 ctr_preload[1] = mpdu[24] & 0x0f; in construct_ctr_preload() 994 ctr_preload[i] = mpdu[i + 8]; in construct_ctr_preload() 996 ctr_preload[i] = pn_vector[13 - i]; in construct_ctr_preload() 997 ctr_preload[14] = (unsigned char)(c / 256); /* Ctr */ in construct_ctr_preload() 998 ctr_preload[15] = (unsigned char)(c % 256); in construct_ctr_preload() 1023 u8 ctr_preload[16]; in aes_cipher() local [all …]
|