pmicdata 278 drivers/staging/rtl8188eu/core/rtw_security.c static void secmicclear(struct mic_data *pmicdata) pmicdata 281 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->L = pmicdata->K0; pmicdata 282 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->R = pmicdata->K1; pmicdata 283 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->nBytesInM = 0; pmicdata 284 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->M = 0; pmicdata 287 drivers/staging/rtl8188eu/core/rtw_security.c void rtw_secmicsetkey(struct mic_data *pmicdata, u8 *key) pmicdata 290 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->K0 = secmicgetuint32(key); pmicdata 291 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->K1 = secmicgetuint32(key + 4); pmicdata 293 drivers/staging/rtl8188eu/core/rtw_security.c secmicclear(pmicdata); pmicdata 296 drivers/staging/rtl8188eu/core/rtw_security.c void rtw_secmicappendbyte(struct mic_data *pmicdata, u8 b) pmicdata 299 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->M |= ((unsigned long)b) << (8*pmicdata->nBytesInM); pmicdata 300 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->nBytesInM++; pmicdata 302 drivers/staging/rtl8188eu/core/rtw_security.c if (pmicdata->nBytesInM >= 4) { pmicdata 303 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->L ^= pmicdata->M; pmicdata 304 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->R ^= ROL32(pmicdata->L, 17); pmicdata 305 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->L += pmicdata->R; pmicdata 306 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->R ^= ((pmicdata->L & 0xff00ff00) >> 8) | ((pmicdata->L & 0x00ff00ff) << 8); pmicdata 307 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->L += pmicdata->R; pmicdata 308 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->R ^= ROL32(pmicdata->L, 3); pmicdata 309 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->L += pmicdata->R; pmicdata 310 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->R ^= ROR32(pmicdata->L, 2); pmicdata 311 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->L += pmicdata->R; pmicdata 313 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->M = 0; pmicdata 314 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->nBytesInM = 0; pmicdata 318 drivers/staging/rtl8188eu/core/rtw_security.c void rtw_secmicappend(struct mic_data *pmicdata, u8 *src, u32 nbytes) pmicdata 322 drivers/staging/rtl8188eu/core/rtw_security.c rtw_secmicappendbyte(pmicdata, *src++); pmicdata 327 drivers/staging/rtl8188eu/core/rtw_security.c void rtw_secgetmic(struct mic_data *pmicdata, u8 *dst) pmicdata 330 drivers/staging/rtl8188eu/core/rtw_security.c rtw_secmicappendbyte(pmicdata, 0x5a); pmicdata 331 drivers/staging/rtl8188eu/core/rtw_security.c rtw_secmicappendbyte(pmicdata, 0); pmicdata 332 drivers/staging/rtl8188eu/core/rtw_security.c rtw_secmicappendbyte(pmicdata, 0); pmicdata 333 drivers/staging/rtl8188eu/core/rtw_security.c rtw_secmicappendbyte(pmicdata, 0); pmicdata 334 drivers/staging/rtl8188eu/core/rtw_security.c rtw_secmicappendbyte(pmicdata, 0); pmicdata 336 drivers/staging/rtl8188eu/core/rtw_security.c while (pmicdata->nBytesInM != 0) pmicdata 337 drivers/staging/rtl8188eu/core/rtw_security.c rtw_secmicappendbyte(pmicdata, 0); pmicdata 339 drivers/staging/rtl8188eu/core/rtw_security.c secmicputuint32(dst, pmicdata->L); pmicdata 340 drivers/staging/rtl8188eu/core/rtw_security.c secmicputuint32(dst+4, pmicdata->R); pmicdata 342 drivers/staging/rtl8188eu/core/rtw_security.c secmicclear(pmicdata); pmicdata 292 drivers/staging/rtl8188eu/include/rtw_security.h void rtw_secmicsetkey(struct mic_data *pmicdata, u8 *key); pmicdata 293 drivers/staging/rtl8188eu/include/rtw_security.h void rtw_secmicappendbyte(struct mic_data *pmicdata, u8 b); pmicdata 294 drivers/staging/rtl8188eu/include/rtw_security.h void rtw_secmicappend(struct mic_data *pmicdata, u8 *src, u32 nBytes); pmicdata 295 drivers/staging/rtl8188eu/include/rtw_security.h void rtw_secgetmic(struct mic_data *pmicdata, u8 *dst); pmicdata 267 drivers/staging/rtl8712/rtl871x_security.c static void secmicclear(struct mic_data *pmicdata) pmicdata 270 drivers/staging/rtl8712/rtl871x_security.c pmicdata->L = pmicdata->K0; pmicdata 271 drivers/staging/rtl8712/rtl871x_security.c pmicdata->R = pmicdata->K1; pmicdata 272 drivers/staging/rtl8712/rtl871x_security.c pmicdata->nBytesInM = 0; pmicdata 273 drivers/staging/rtl8712/rtl871x_security.c pmicdata->M = 0; pmicdata 276 drivers/staging/rtl8712/rtl871x_security.c void r8712_secmicsetkey(struct mic_data *pmicdata, u8 *key) pmicdata 279 drivers/staging/rtl8712/rtl871x_security.c pmicdata->K0 = secmicgetuint32(key); pmicdata 280 drivers/staging/rtl8712/rtl871x_security.c pmicdata->K1 = secmicgetuint32(key + 4); pmicdata 282 drivers/staging/rtl8712/rtl871x_security.c secmicclear(pmicdata); pmicdata 285 drivers/staging/rtl8712/rtl871x_security.c static void secmicappendbyte(struct mic_data *pmicdata, u8 b) pmicdata 288 drivers/staging/rtl8712/rtl871x_security.c pmicdata->M |= ((u32)b) << (8 * pmicdata->nBytesInM); pmicdata 289 drivers/staging/rtl8712/rtl871x_security.c pmicdata->nBytesInM++; pmicdata 291 drivers/staging/rtl8712/rtl871x_security.c if (pmicdata->nBytesInM >= 4) { pmicdata 292 drivers/staging/rtl8712/rtl871x_security.c pmicdata->L ^= pmicdata->M; pmicdata 293 drivers/staging/rtl8712/rtl871x_security.c pmicdata->R ^= ROL32(pmicdata->L, 17); pmicdata 294 drivers/staging/rtl8712/rtl871x_security.c pmicdata->L += pmicdata->R; pmicdata 295 drivers/staging/rtl8712/rtl871x_security.c pmicdata->R ^= ((pmicdata->L & 0xff00ff00) >> 8) | pmicdata 296 drivers/staging/rtl8712/rtl871x_security.c ((pmicdata->L & 0x00ff00ff) << 8); pmicdata 297 drivers/staging/rtl8712/rtl871x_security.c pmicdata->L += pmicdata->R; pmicdata 298 drivers/staging/rtl8712/rtl871x_security.c pmicdata->R ^= ROL32(pmicdata->L, 3); pmicdata 299 drivers/staging/rtl8712/rtl871x_security.c pmicdata->L += pmicdata->R; pmicdata 300 drivers/staging/rtl8712/rtl871x_security.c pmicdata->R ^= ROR32(pmicdata->L, 2); pmicdata 301 drivers/staging/rtl8712/rtl871x_security.c pmicdata->L += pmicdata->R; pmicdata 303 drivers/staging/rtl8712/rtl871x_security.c pmicdata->M = 0; pmicdata 304 drivers/staging/rtl8712/rtl871x_security.c pmicdata->nBytesInM = 0; pmicdata 308 drivers/staging/rtl8712/rtl871x_security.c void r8712_secmicappend(struct mic_data *pmicdata, u8 *src, u32 nbytes) pmicdata 312 drivers/staging/rtl8712/rtl871x_security.c secmicappendbyte(pmicdata, *src++); pmicdata 317 drivers/staging/rtl8712/rtl871x_security.c void r8712_secgetmic(struct mic_data *pmicdata, u8 *dst) pmicdata 320 drivers/staging/rtl8712/rtl871x_security.c secmicappendbyte(pmicdata, 0x5a); pmicdata 321 drivers/staging/rtl8712/rtl871x_security.c secmicappendbyte(pmicdata, 0); pmicdata 322 drivers/staging/rtl8712/rtl871x_security.c secmicappendbyte(pmicdata, 0); pmicdata 323 drivers/staging/rtl8712/rtl871x_security.c secmicappendbyte(pmicdata, 0); pmicdata 324 drivers/staging/rtl8712/rtl871x_security.c secmicappendbyte(pmicdata, 0); pmicdata 326 drivers/staging/rtl8712/rtl871x_security.c while (pmicdata->nBytesInM != 0) pmicdata 327 drivers/staging/rtl8712/rtl871x_security.c secmicappendbyte(pmicdata, 0); pmicdata 329 drivers/staging/rtl8712/rtl871x_security.c secmicputuint32(dst, pmicdata->L); pmicdata 330 drivers/staging/rtl8712/rtl871x_security.c secmicputuint32(dst + 4, pmicdata->R); pmicdata 332 drivers/staging/rtl8712/rtl871x_security.c secmicclear(pmicdata); pmicdata 206 drivers/staging/rtl8712/rtl871x_security.h void r8712_secmicsetkey(struct mic_data *pmicdata, u8 *key); pmicdata 207 drivers/staging/rtl8712/rtl871x_security.h void r8712_secmicappend(struct mic_data *pmicdata, u8 *src, u32 nBytes); pmicdata 208 drivers/staging/rtl8712/rtl871x_security.h void r8712_secgetmic(struct mic_data *pmicdata, u8 *dst); pmicdata 341 drivers/staging/rtl8723bs/core/rtw_security.c static void secmicclear(struct mic_data *pmicdata) pmicdata 344 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->L = pmicdata->K0; pmicdata 345 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->R = pmicdata->K1; pmicdata 346 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->nBytesInM = 0; pmicdata 347 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->M = 0; pmicdata 350 drivers/staging/rtl8723bs/core/rtw_security.c void rtw_secmicsetkey(struct mic_data *pmicdata, u8 *key) pmicdata 353 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->K0 = secmicgetuint32(key); pmicdata 354 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->K1 = secmicgetuint32(key + 4); pmicdata 356 drivers/staging/rtl8723bs/core/rtw_security.c secmicclear(pmicdata); pmicdata 359 drivers/staging/rtl8723bs/core/rtw_security.c void rtw_secmicappendbyte(struct mic_data *pmicdata, u8 b) pmicdata 362 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->M |= ((unsigned long)b) << (8*pmicdata->nBytesInM); pmicdata 363 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->nBytesInM++; pmicdata 365 drivers/staging/rtl8723bs/core/rtw_security.c if (pmicdata->nBytesInM >= 4) { pmicdata 366 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->L ^= pmicdata->M; pmicdata 367 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->R ^= ROL32(pmicdata->L, 17); pmicdata 368 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->L += pmicdata->R; pmicdata 369 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->R ^= ((pmicdata->L & 0xff00ff00) >> 8) | ((pmicdata->L & 0x00ff00ff) << 8); pmicdata 370 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->L += pmicdata->R; pmicdata 371 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->R ^= ROL32(pmicdata->L, 3); pmicdata 372 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->L += pmicdata->R; pmicdata 373 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->R ^= ROR32(pmicdata->L, 2); pmicdata 374 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->L += pmicdata->R; pmicdata 376 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->M = 0; pmicdata 377 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->nBytesInM = 0; pmicdata 381 drivers/staging/rtl8723bs/core/rtw_security.c void rtw_secmicappend(struct mic_data *pmicdata, u8 *src, u32 nbytes) pmicdata 385 drivers/staging/rtl8723bs/core/rtw_security.c rtw_secmicappendbyte(pmicdata, *src++); pmicdata 390 drivers/staging/rtl8723bs/core/rtw_security.c void rtw_secgetmic(struct mic_data *pmicdata, u8 *dst) pmicdata 393 drivers/staging/rtl8723bs/core/rtw_security.c rtw_secmicappendbyte(pmicdata, 0x5a); pmicdata 394 drivers/staging/rtl8723bs/core/rtw_security.c rtw_secmicappendbyte(pmicdata, 0); pmicdata 395 drivers/staging/rtl8723bs/core/rtw_security.c rtw_secmicappendbyte(pmicdata, 0); pmicdata 396 drivers/staging/rtl8723bs/core/rtw_security.c rtw_secmicappendbyte(pmicdata, 0); pmicdata 397 drivers/staging/rtl8723bs/core/rtw_security.c rtw_secmicappendbyte(pmicdata, 0); pmicdata 399 drivers/staging/rtl8723bs/core/rtw_security.c while (pmicdata->nBytesInM != 0) { pmicdata 400 drivers/staging/rtl8723bs/core/rtw_security.c rtw_secmicappendbyte(pmicdata, 0); pmicdata 403 drivers/staging/rtl8723bs/core/rtw_security.c secmicputuint32(dst, pmicdata->L); pmicdata 404 drivers/staging/rtl8723bs/core/rtw_security.c secmicputuint32(dst+4, pmicdata->R); pmicdata 406 drivers/staging/rtl8723bs/core/rtw_security.c secmicclear(pmicdata); pmicdata 407 drivers/staging/rtl8723bs/include/rtw_security.h void rtw_secmicsetkey(struct mic_data *pmicdata, u8 * key); pmicdata 408 drivers/staging/rtl8723bs/include/rtw_security.h void rtw_secmicappendbyte(struct mic_data *pmicdata, u8 b); pmicdata 409 drivers/staging/rtl8723bs/include/rtw_security.h void rtw_secmicappend(struct mic_data *pmicdata, u8 * src, u32 nBytes); pmicdata 410 drivers/staging/rtl8723bs/include/rtw_security.h void rtw_secgetmic(struct mic_data *pmicdata, u8 * dst);