Lines Matching refs:s1
601 uint_8t s1[N_BLOCK], r; local
602 copy_and_key(s1, in, ctx->ksch);
607 mix_sub_columns(s1);
608 add_round_key(s1, ctx->ksch + r * N_BLOCK);
613 mix_sub_columns(s2, s1);
614 copy_and_key(s1, s2, ctx->ksch + r * N_BLOCK);
617 shift_sub_rows(s1);
618 copy_and_key(out, s1, ctx->ksch + r * N_BLOCK);
648 uint_8t s1[N_BLOCK], r; local
649 copy_and_key(s1, in, ctx->ksch + ctx->rnd * N_BLOCK);
650 inv_shift_sub_rows(s1);
655 add_round_key(s1, ctx->ksch + r * N_BLOCK);
656 inv_mix_sub_columns(s1);
661 copy_and_key(s2, s1, ctx->ksch + r * N_BLOCK);
662 inv_mix_sub_columns(s1, s2);
665 copy_and_key(out, s1, ctx->ksch);
718 uint_8t s1[N_BLOCK], r, rc = 1; local
721 copy_and_key(s1, in, o_key);
726 mix_sub_columns(s1);
728 add_round_key(s1, o_key);
733 mix_sub_columns(s2, s1);
735 copy_and_key(s1, s2, o_key);
739 shift_sub_rows(s1);
741 copy_and_key(out, s1, o_key);
772 uint_8t s1[N_BLOCK], r, rc = 0x6c; local
775 copy_and_key(s1, in, o_key);
776 inv_shift_sub_rows(s1);
782 add_round_key(s1, o_key);
783 inv_mix_sub_columns(s1);
789 copy_and_key(s2, s1, o_key);
790 inv_mix_sub_columns(s1, s2);
794 copy_and_key(out, s1, o_key);
838 uint_8t s1[N_BLOCK], r, rc = 1; local
843 copy_and_key(s1, in, o_key);
848 mix_sub_columns(s1);
850 add_round_key(s1, o_key + 16);
853 add_round_key(s1, o_key);
859 mix_sub_columns(s2, s1);
861 copy_and_key(s1, s2, o_key + 16);
864 copy_and_key(s1, s2, o_key);
869 shift_sub_rows(s1);
871 copy_and_key(out, s1, o_key);
916 uint_8t s1[N_BLOCK], r, rc = 0x80; local
923 copy_and_key(s1, in, o_key);
924 inv_shift_sub_rows(s1);
931 add_round_key(s1, o_key + 16);
933 add_round_key(s1, o_key);
934 inv_mix_sub_columns(s1);
941 copy_and_key(s2, s1, o_key + 16);
943 copy_and_key(s2, s1, o_key);
944 inv_mix_sub_columns(s1, s2);
947 copy_and_key(out, s1, o_key);