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