Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/staging/rtl8712/
Drtl871x_security.c980 static void construct_ctr_preload(u8 *ctr_preload, in construct_ctr_preload() argument
987 ctr_preload[i] = 0x00; in construct_ctr_preload()
989 ctr_preload[0] = 0x01; /* flag */ in construct_ctr_preload()
991 ctr_preload[1] = mpdu[30] & 0x0f; in construct_ctr_preload()
993 ctr_preload[1] = mpdu[24] & 0x0f; in construct_ctr_preload()
995 ctr_preload[i] = mpdu[i + 8]; in construct_ctr_preload()
997 ctr_preload[i] = pn_vector[13 - i]; in construct_ctr_preload()
998 ctr_preload[14] = (unsigned char) (c / 256); /* Ctr */ in construct_ctr_preload()
999 ctr_preload[15] = (unsigned char) (c % 256); in construct_ctr_preload()
1024 u8 ctr_preload[16]; in aes_cipher() local
[all …]
/Linux-v5.10/drivers/staging/rtl8723bs/core/
Drtw_security.c907 u8 *ctr_preload,
1242 u8 *ctr_preload, in construct_ctr_preload() argument
1254 ctr_preload[i] = 0x00; in construct_ctr_preload()
1257 ctr_preload[0] = 0x01; /* flag */ in construct_ctr_preload()
1259 ctr_preload[1] = mpdu[30] & 0x0f; /* QoC_Control */ in construct_ctr_preload()
1261 ctr_preload[1] = mpdu[24] & 0x0f; in construct_ctr_preload()
1265 ctr_preload[1] |= BIT(4); in construct_ctr_preload()
1268 ctr_preload[i] = mpdu[i + 8]; /* ctr_preload[2:7] = A2[0:5] = mpdu[10:15] */ in construct_ctr_preload()
1271 ctr_preload[i] = pn_vector[i - 8]; /* ctr_preload[8:13] = PN[0:5] */ in construct_ctr_preload()
1274 ctr_preload[i] = pn_vector[13 - i]; /* ctr_preload[8:13] = PN[5:0] */ in construct_ctr_preload()
[all …]