Lines Matching refs:s1
572 uint8_t s1[N_BLOCK], r; local
573 copy_and_key( s1, in, ctx->ksch );
578 mix_sub_columns( s1 );
579 add_round_key( s1, ctx->ksch + r * N_BLOCK);
583 mix_sub_columns( s2, s1 );
584 copy_and_key( s1, s2, ctx->ksch + r * N_BLOCK);
587 shift_sub_rows( s1 );
588 copy_and_key( out, s1, ctx->ksch + r * N_BLOCK );
624 uint8_t 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 );
696 { uint8_t s1[N_BLOCK], r, rc = 1; local
700 copy_and_key( s1, in, o_key );
705 mix_sub_columns( s1 );
707 add_round_key( s1, o_key );
711 mix_sub_columns( s2, s1 );
713 copy_and_key( s1, s2, o_key );
717 shift_sub_rows( s1 );
719 copy_and_key( out, s1, o_key );
750 uint8_t s1[N_BLOCK], r, rc = 0x6c; local
754 copy_and_key( s1, in, o_key );
755 inv_shift_sub_rows( s1 );
761 add_round_key( s1, o_key );
762 inv_mix_sub_columns( s1 );
767 copy_and_key( s2, s1, o_key );
768 inv_mix_sub_columns( s1, s2 );
772 copy_and_key( out, s1, o_key );
817 uint8_t s1[N_BLOCK], r, rc = 1; local
823 copy_and_key( s1, in, o_key );
828 mix_sub_columns(s1);
830 add_round_key( s1, o_key + 16 );
834 add_round_key( s1, o_key );
839 mix_sub_columns( s2, s1 );
841 copy_and_key( s1, s2, o_key + 16 );
845 copy_and_key( s1, s2, o_key );
850 shift_sub_rows( s1 );
852 copy_and_key( out, s1, o_key );
898 uint8_t s1[N_BLOCK], r, rc = 0x80; local
906 copy_and_key( s1, in, o_key );
907 inv_shift_sub_rows( s1 );
915 add_round_key( s1, o_key + 16 );
918 add_round_key( s1, o_key );
919 inv_mix_sub_columns( s1 );
926 copy_and_key( s2, s1, o_key + 16 );
929 copy_and_key( s2, s1, o_key );
930 inv_mix_sub_columns( s1, s2 );
933 copy_and_key( out, s1, o_key );