• Home
  • Raw
  • Download

Lines Matching refs:work

320 	u32 work, right, leftt;  in desfunc()  local
326 work = ((leftt >> 4) ^ right) & 0x0f0f0f0fL; in desfunc()
327 right ^= work; in desfunc()
328 leftt ^= (work << 4); in desfunc()
330 work = ((leftt >> 16) ^ right) & 0x0000ffffL; in desfunc()
331 right ^= work; in desfunc()
332 leftt ^= (work << 16); in desfunc()
334 work = ((right >> 2) ^ leftt) & 0x33333333L; in desfunc()
335 leftt ^= work; in desfunc()
336 right ^= (work << 2); in desfunc()
338 work = ((right >> 8) ^ leftt) & 0x00ff00ffL; in desfunc()
339 leftt ^= work; in desfunc()
340 right ^= (work << 8); in desfunc()
343 work = (leftt ^ right) & 0xaaaaaaaaL; in desfunc()
345 leftt ^= work; in desfunc()
346 right ^= work; in desfunc()
350 work = RORc(right, 4) ^ *keys++; in desfunc()
351 leftt ^= SP7[work & 0x3fL] in desfunc()
352 ^ SP5[(work >> 8) & 0x3fL] in desfunc()
353 ^ SP3[(work >> 16) & 0x3fL] in desfunc()
354 ^ SP1[(work >> 24) & 0x3fL]; in desfunc()
355 work = right ^ *keys++; in desfunc()
356 leftt ^= SP8[ work & 0x3fL] in desfunc()
357 ^ SP6[(work >> 8) & 0x3fL] in desfunc()
358 ^ SP4[(work >> 16) & 0x3fL] in desfunc()
359 ^ SP2[(work >> 24) & 0x3fL]; in desfunc()
361 work = RORc(leftt, 4) ^ *keys++; in desfunc()
362 right ^= SP7[ work & 0x3fL] in desfunc()
363 ^ SP5[(work >> 8) & 0x3fL] in desfunc()
364 ^ SP3[(work >> 16) & 0x3fL] in desfunc()
365 ^ SP1[(work >> 24) & 0x3fL]; in desfunc()
366 work = leftt ^ *keys++; in desfunc()
367 right ^= SP8[ work & 0x3fL] in desfunc()
368 ^ SP6[(work >> 8) & 0x3fL] in desfunc()
369 ^ SP4[(work >> 16) & 0x3fL] in desfunc()
370 ^ SP2[(work >> 24) & 0x3fL]; in desfunc()
374 work = (leftt ^ right) & 0xaaaaaaaaL; in desfunc()
375 leftt ^= work; in desfunc()
376 right ^= work; in desfunc()
378 work = ((leftt >> 8) ^ right) & 0x00ff00ffL; in desfunc()
379 right ^= work; in desfunc()
380 leftt ^= (work << 8); in desfunc()
382 work = ((leftt >> 2) ^ right) & 0x33333333L; in desfunc()
383 right ^= work; in desfunc()
384 leftt ^= (work << 2); in desfunc()
385 work = ((right >> 16) ^ leftt) & 0x0000ffffL; in desfunc()
386 leftt ^= work; in desfunc()
387 right ^= (work << 16); in desfunc()
388 work = ((right >> 4) ^ leftt) & 0x0f0f0f0fL; in desfunc()
389 leftt ^= work; in desfunc()
390 right ^= (work << 4); in desfunc()
403 u32 ek[32], work[2]; in des_encrypt() local
416 work[0] = WPA_GET_BE32(clear); in des_encrypt()
417 work[1] = WPA_GET_BE32(clear + 4); in des_encrypt()
418 desfunc(work, ek); in des_encrypt()
419 WPA_PUT_BE32(cypher, work[0]); in des_encrypt()
420 WPA_PUT_BE32(cypher + 4, work[1]); in des_encrypt()
437 u32 work[2]; in des_block_encrypt() local
438 work[0] = WPA_GET_BE32(plain); in des_block_encrypt()
439 work[1] = WPA_GET_BE32(plain + 4); in des_block_encrypt()
440 desfunc(work, ek); in des_block_encrypt()
441 WPA_PUT_BE32(crypt, work[0]); in des_block_encrypt()
442 WPA_PUT_BE32(crypt + 4, work[1]); in des_block_encrypt()
448 u32 work[2]; in des_block_decrypt() local
449 work[0] = WPA_GET_BE32(crypt); in des_block_decrypt()
450 work[1] = WPA_GET_BE32(crypt + 4); in des_block_decrypt()
451 desfunc(work, dk); in des_block_decrypt()
452 WPA_PUT_BE32(plain, work[0]); in des_block_decrypt()
453 WPA_PUT_BE32(plain + 4, work[1]); in des_block_decrypt()
471 u32 work[2]; in des3_encrypt() local
473 work[0] = WPA_GET_BE32(plain); in des3_encrypt()
474 work[1] = WPA_GET_BE32(plain + 4); in des3_encrypt()
475 desfunc(work, key->ek[0]); in des3_encrypt()
476 desfunc(work, key->ek[1]); in des3_encrypt()
477 desfunc(work, key->ek[2]); in des3_encrypt()
478 WPA_PUT_BE32(crypt, work[0]); in des3_encrypt()
479 WPA_PUT_BE32(crypt + 4, work[1]); in des3_encrypt()
485 u32 work[2]; in des3_decrypt() local
487 work[0] = WPA_GET_BE32(crypt); in des3_decrypt()
488 work[1] = WPA_GET_BE32(crypt + 4); in des3_decrypt()
489 desfunc(work, key->dk[0]); in des3_decrypt()
490 desfunc(work, key->dk[1]); in des3_decrypt()
491 desfunc(work, key->dk[2]); in des3_decrypt()
492 WPA_PUT_BE32(plain, work[0]); in des3_decrypt()
493 WPA_PUT_BE32(plain + 4, work[1]); in des3_decrypt()