Lines Matching refs:reg2
474 register uint32_t reg0, reg1, reg2, reg3; in aria_encrypt() local
491 reg2 = GET_U32_BE(in, 2); in aria_encrypt()
494 ARIA_ADD_ROUND_KEY(rk, reg0, reg1, reg2, reg3); in aria_encrypt()
497 ARIA_SUBST_DIFF_ODD(reg0, reg1, reg2, reg3); in aria_encrypt()
498 ARIA_ADD_ROUND_KEY(rk, reg0, reg1, reg2, reg3); in aria_encrypt()
502 ARIA_SUBST_DIFF_EVEN(reg0, reg1, reg2, reg3); in aria_encrypt()
503 ARIA_ADD_ROUND_KEY(rk, reg0, reg1, reg2, reg3); in aria_encrypt()
506 ARIA_SUBST_DIFF_ODD(reg0, reg1, reg2, reg3); in aria_encrypt()
507 ARIA_ADD_ROUND_KEY(rk, reg0, reg1, reg2, reg3); in aria_encrypt()
521 reg2 = rk->u[2] ^ MAKE_U32( in aria_encrypt()
522 (uint8_t)(X1[GET_U8_BE(reg2, 0)] ), in aria_encrypt()
523 (uint8_t)(X2[GET_U8_BE(reg2, 1)] >> 8), in aria_encrypt()
524 (uint8_t)(S1[GET_U8_BE(reg2, 2)] ), in aria_encrypt()
525 (uint8_t)(S2[GET_U8_BE(reg2, 3)] )); in aria_encrypt()
534 PUT_U32_BE(out, 2, reg2); in aria_encrypt()
541 register uint32_t reg0, reg1, reg2, reg3; in aria_set_encrypt_key() local
566 reg2 = w0[2] ^ ck[2]; in aria_set_encrypt_key()
569 ARIA_SUBST_DIFF_ODD(reg0, reg1, reg2, reg3); in aria_set_encrypt_key()
588 w1[2] ^= reg2; in aria_set_encrypt_key()
593 reg2 = w1[2]; in aria_set_encrypt_key()
598 reg2 ^= ck[6]; in aria_set_encrypt_key()
601 ARIA_SUBST_DIFF_EVEN(reg0, reg1, reg2, reg3); in aria_set_encrypt_key()
605 reg2 ^= w0[2]; in aria_set_encrypt_key()
610 w2[2] = reg2; in aria_set_encrypt_key()
615 reg2 ^= ck[10]; in aria_set_encrypt_key()
618 ARIA_SUBST_DIFF_ODD(reg0, reg1, reg2, reg3); in aria_set_encrypt_key()
622 w3[2] = reg2 ^ w1[2]; in aria_set_encrypt_key()
676 register uint32_t reg0, reg1, reg2, reg3; in aria_set_decrypt_key() local
690 reg2 = rk_head->u[2]; in aria_set_decrypt_key()
697 rk_tail->u[2] = reg2; in aria_set_decrypt_key()
706 ARIA_DEC_DIFF_BYTE(rk_head->u[2], reg2, w1, w2); in aria_set_decrypt_key()
709 ARIA_DIFF_WORD(reg0, reg1, reg2, reg3); in aria_set_decrypt_key()
710 ARIA_DIFF_BYTE(reg0, reg1, reg2, reg3); in aria_set_decrypt_key()
711 ARIA_DIFF_WORD(reg0, reg1, reg2, reg3); in aria_set_decrypt_key()
715 s2 = reg2; in aria_set_decrypt_key()
720 ARIA_DEC_DIFF_BYTE(rk_tail->u[2], reg2, w1, w2); in aria_set_decrypt_key()
723 ARIA_DIFF_WORD(reg0, reg1, reg2, reg3); in aria_set_decrypt_key()
724 ARIA_DIFF_BYTE(reg0, reg1, reg2, reg3); in aria_set_decrypt_key()
725 ARIA_DIFF_WORD(reg0, reg1, reg2, reg3); in aria_set_decrypt_key()
729 rk_head->u[2] = reg2; in aria_set_decrypt_key()
739 ARIA_DEC_DIFF_BYTE(rk_head->u[2], reg2, w1, w2); in aria_set_decrypt_key()
742 ARIA_DIFF_WORD(reg0, reg1, reg2, reg3); in aria_set_decrypt_key()
743 ARIA_DIFF_BYTE(reg0, reg1, reg2, reg3); in aria_set_decrypt_key()
744 ARIA_DIFF_WORD(reg0, reg1, reg2, reg3); in aria_set_decrypt_key()
748 rk_tail->u[2] = reg2; in aria_set_decrypt_key()