Lines Matching refs:s1
573 uint_8t s1[N_BLOCK], r; local
574 copy_and_key( s1, in, ctx->ksch );
579 mix_sub_columns( s1 );
580 add_round_key( s1, ctx->ksch + r * N_BLOCK);
584 mix_sub_columns( s2, s1 );
585 copy_and_key( s1, s2, ctx->ksch + r * N_BLOCK);
588 shift_sub_rows( s1 );
589 copy_and_key( out, s1, ctx->ksch + r * N_BLOCK );
624 uint_8t s1[N_BLOCK], r; local
625 copy_and_key( s1, in, ctx->ksch + ctx->rnd * N_BLOCK );
626 inv_shift_sub_rows( s1 );
631 add_round_key( s1, ctx->ksch + r * N_BLOCK );
632 inv_mix_sub_columns( s1 );
636 copy_and_key( s2, s1, ctx->ksch + r * N_BLOCK );
637 inv_mix_sub_columns( s1, s2 );
640 copy_and_key( out, s1, ctx->ksch );
694 { uint_8t s1[N_BLOCK], r, rc = 1; local
698 copy_and_key( s1, in, o_key );
703 mix_sub_columns( s1 );
705 add_round_key( s1, o_key );
709 mix_sub_columns( s2, s1 );
711 copy_and_key( s1, s2, o_key );
715 shift_sub_rows( s1 );
717 copy_and_key( out, s1, o_key );
748 uint_8t s1[N_BLOCK], r, rc = 0x6c; local
752 copy_and_key( s1, in, o_key );
753 inv_shift_sub_rows( s1 );
759 add_round_key( s1, o_key );
760 inv_mix_sub_columns( s1 );
765 copy_and_key( s2, s1, o_key );
766 inv_mix_sub_columns( s1, s2 );
770 copy_and_key( out, s1, o_key );
815 uint_8t s1[N_BLOCK], r, rc = 1; local
821 copy_and_key( s1, in, o_key );
826 mix_sub_columns(s1);
828 add_round_key( s1, o_key + 16 );
832 add_round_key( s1, o_key );
837 mix_sub_columns( s2, s1 );
839 copy_and_key( s1, s2, o_key + 16 );
843 copy_and_key( s1, s2, o_key );
848 shift_sub_rows( s1 );
850 copy_and_key( out, s1, o_key );
896 uint_8t s1[N_BLOCK], r, rc = 0x80; local
904 copy_and_key( s1, in, o_key );
905 inv_shift_sub_rows( s1 );
913 add_round_key( s1, o_key + 16 );
916 add_round_key( s1, o_key );
917 inv_mix_sub_columns( s1 );
924 copy_and_key( s2, s1, o_key + 16 );
927 copy_and_key( s2, s1, o_key );
928 inv_mix_sub_columns( s1, s2 );
931 copy_and_key( out, s1, o_key );