Home
last modified time | relevance | path

Searched refs:ctr_preload (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/drivers/staging/rtl8723bs/core/
Drtw_security.c661 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-v6.6/drivers/staging/rtl8712/
Drtl871x_security.c979 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 …]