Lines Matching +full:key +full:-

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Implement AES algorithm in Intel AES-NI instructions.
5 * The white paper of AES-NI instructions can be downloaded from:
6 * http://softwarecommunity.intel.com/isn/downloads/intelavx/AES-Instructions-Set_WP.pdf
32 #define KEY %xmm2 macro
147 movups (UKEYP), %xmm0 # user key (first 16 bytes)
149 lea 0x10(KEYP), TKEYP # key addr
155 movups 0x10(UKEYP), %xmm2 # other user key
186 movq 0x10(UKEYP), %xmm2 # other user key
232 lea 240-16(TKEYP), UKEYP
261 movl 480(KEYP), KLEN # key length
276 * KEYP: key struct pointer
282 * KEY
286 movaps (KEYP), KEY # key
288 pxor KEY, STATE # round 0
295 movaps -0x60(TKEYP), KEY
296 aesenc KEY, STATE
297 movaps -0x50(TKEYP), KEY
298 aesenc KEY, STATE
301 movaps -0x40(TKEYP), KEY
302 aesenc KEY, STATE
303 movaps -0x30(TKEYP), KEY
304 aesenc KEY, STATE
307 movaps -0x20(TKEYP), KEY
308 aesenc KEY, STATE
309 movaps -0x10(TKEYP), KEY
310 aesenc KEY, STATE
311 movaps (TKEYP), KEY
312 aesenc KEY, STATE
313 movaps 0x10(TKEYP), KEY
314 aesenc KEY, STATE
315 movaps 0x20(TKEYP), KEY
316 aesenc KEY, STATE
317 movaps 0x30(TKEYP), KEY
318 aesenc KEY, STATE
319 movaps 0x40(TKEYP), KEY
320 aesenc KEY, STATE
321 movaps 0x50(TKEYP), KEY
322 aesenc KEY, STATE
323 movaps 0x60(TKEYP), KEY
324 aesenc KEY, STATE
325 movaps 0x70(TKEYP), KEY
326 aesenclast KEY, STATE
333 * KEYP: key struct pointer
345 * KEY
349 movaps (KEYP), KEY # key
351 pxor KEY, STATE1 # round 0
352 pxor KEY, STATE2
353 pxor KEY, STATE3
354 pxor KEY, STATE4
361 movaps -0x60(TKEYP), KEY
362 aesenc KEY, STATE1
363 aesenc KEY, STATE2
364 aesenc KEY, STATE3
365 aesenc KEY, STATE4
366 movaps -0x50(TKEYP), KEY
367 aesenc KEY, STATE1
368 aesenc KEY, STATE2
369 aesenc KEY, STATE3
370 aesenc KEY, STATE4
373 movaps -0x40(TKEYP), KEY
374 aesenc KEY, STATE1
375 aesenc KEY, STATE2
376 aesenc KEY, STATE3
377 aesenc KEY, STATE4
378 movaps -0x30(TKEYP), KEY
379 aesenc KEY, STATE1
380 aesenc KEY, STATE2
381 aesenc KEY, STATE3
382 aesenc KEY, STATE4
385 movaps -0x20(TKEYP), KEY
386 aesenc KEY, STATE1
387 aesenc KEY, STATE2
388 aesenc KEY, STATE3
389 aesenc KEY, STATE4
390 movaps -0x10(TKEYP), KEY
391 aesenc KEY, STATE1
392 aesenc KEY, STATE2
393 aesenc KEY, STATE3
394 aesenc KEY, STATE4
395 movaps (TKEYP), KEY
396 aesenc KEY, STATE1
397 aesenc KEY, STATE2
398 aesenc KEY, STATE3
399 aesenc KEY, STATE4
400 movaps 0x10(TKEYP), KEY
401 aesenc KEY, STATE1
402 aesenc KEY, STATE2
403 aesenc KEY, STATE3
404 aesenc KEY, STATE4
405 movaps 0x20(TKEYP), KEY
406 aesenc KEY, STATE1
407 aesenc KEY, STATE2
408 aesenc KEY, STATE3
409 aesenc KEY, STATE4
410 movaps 0x30(TKEYP), KEY
411 aesenc KEY, STATE1
412 aesenc KEY, STATE2
413 aesenc KEY, STATE3
414 aesenc KEY, STATE4
415 movaps 0x40(TKEYP), KEY
416 aesenc KEY, STATE1
417 aesenc KEY, STATE2
418 aesenc KEY, STATE3
419 aesenc KEY, STATE4
420 movaps 0x50(TKEYP), KEY
421 aesenc KEY, STATE1
422 aesenc KEY, STATE2
423 aesenc KEY, STATE3
424 aesenc KEY, STATE4
425 movaps 0x60(TKEYP), KEY
426 aesenc KEY, STATE1
427 aesenc KEY, STATE2
428 aesenc KEY, STATE3
429 aesenc KEY, STATE4
430 movaps 0x70(TKEYP), KEY
431 aesenclast KEY, STATE1 # last round
432 aesenclast KEY, STATE2
433 aesenclast KEY, STATE3
434 aesenclast KEY, STATE4
450 mov 480(KEYP), KLEN # key length
466 * KEYP: key struct pointer
467 * KLEN: key length
472 * KEY
476 movaps (KEYP), KEY # key
478 pxor KEY, STATE # round 0
485 movaps -0x60(TKEYP), KEY
486 aesdec KEY, STATE
487 movaps -0x50(TKEYP), KEY
488 aesdec KEY, STATE
491 movaps -0x40(TKEYP), KEY
492 aesdec KEY, STATE
493 movaps -0x30(TKEYP), KEY
494 aesdec KEY, STATE
497 movaps -0x20(TKEYP), KEY
498 aesdec KEY, STATE
499 movaps -0x10(TKEYP), KEY
500 aesdec KEY, STATE
501 movaps (TKEYP), KEY
502 aesdec KEY, STATE
503 movaps 0x10(TKEYP), KEY
504 aesdec KEY, STATE
505 movaps 0x20(TKEYP), KEY
506 aesdec KEY, STATE
507 movaps 0x30(TKEYP), KEY
508 aesdec KEY, STATE
509 movaps 0x40(TKEYP), KEY
510 aesdec KEY, STATE
511 movaps 0x50(TKEYP), KEY
512 aesdec KEY, STATE
513 movaps 0x60(TKEYP), KEY
514 aesdec KEY, STATE
515 movaps 0x70(TKEYP), KEY
516 aesdeclast KEY, STATE
523 * KEYP: key struct pointer
524 * KLEN: key length
535 * KEY
539 movaps (KEYP), KEY # key
541 pxor KEY, STATE1 # round 0
542 pxor KEY, STATE2
543 pxor KEY, STATE3
544 pxor KEY, STATE4
551 movaps -0x60(TKEYP), KEY
552 aesdec KEY, STATE1
553 aesdec KEY, STATE2
554 aesdec KEY, STATE3
555 aesdec KEY, STATE4
556 movaps -0x50(TKEYP), KEY
557 aesdec KEY, STATE1
558 aesdec KEY, STATE2
559 aesdec KEY, STATE3
560 aesdec KEY, STATE4
563 movaps -0x40(TKEYP), KEY
564 aesdec KEY, STATE1
565 aesdec KEY, STATE2
566 aesdec KEY, STATE3
567 aesdec KEY, STATE4
568 movaps -0x30(TKEYP), KEY
569 aesdec KEY, STATE1
570 aesdec KEY, STATE2
571 aesdec KEY, STATE3
572 aesdec KEY, STATE4
575 movaps -0x20(TKEYP), KEY
576 aesdec KEY, STATE1
577 aesdec KEY, STATE2
578 aesdec KEY, STATE3
579 aesdec KEY, STATE4
580 movaps -0x10(TKEYP), KEY
581 aesdec KEY, STATE1
582 aesdec KEY, STATE2
583 aesdec KEY, STATE3
584 aesdec KEY, STATE4
585 movaps (TKEYP), KEY
586 aesdec KEY, STATE1
587 aesdec KEY, STATE2
588 aesdec KEY, STATE3
589 aesdec KEY, STATE4
590 movaps 0x10(TKEYP), KEY
591 aesdec KEY, STATE1
592 aesdec KEY, STATE2
593 aesdec KEY, STATE3
594 aesdec KEY, STATE4
595 movaps 0x20(TKEYP), KEY
596 aesdec KEY, STATE1
597 aesdec KEY, STATE2
598 aesdec KEY, STATE3
599 aesdec KEY, STATE4
600 movaps 0x30(TKEYP), KEY
601 aesdec KEY, STATE1
602 aesdec KEY, STATE2
603 aesdec KEY, STATE3
604 aesdec KEY, STATE4
605 movaps 0x40(TKEYP), KEY
606 aesdec KEY, STATE1
607 aesdec KEY, STATE2
608 aesdec KEY, STATE3
609 aesdec KEY, STATE4
610 movaps 0x50(TKEYP), KEY
611 aesdec KEY, STATE1
612 aesdec KEY, STATE2
613 aesdec KEY, STATE3
614 aesdec KEY, STATE4
615 movaps 0x60(TKEYP), KEY
616 aesdec KEY, STATE1
617 aesdec KEY, STATE2
618 aesdec KEY, STATE3
619 aesdec KEY, STATE4
620 movaps 0x70(TKEYP), KEY
621 aesdeclast KEY, STATE1 # last round
622 aesdeclast KEY, STATE2
623 aesdeclast KEY, STATE3
624 aesdeclast KEY, STATE4
1148 * KEY: == temporary value
1151 pshufd $0x13, IV, KEY
1153 psrad $31, KEY
1154 pand GF128MUL_MASK, KEY
1155 pxor KEY, IV