Lines Matching refs:num_rounds
336 unsigned num_rounds; in aes_keysched_base() local
342 num_rounds = 10; in aes_keysched_base()
345 num_rounds = 12; in aes_keysched_base()
348 num_rounds = 14; in aes_keysched_base()
354 nkf = (int)((num_rounds + 1) << 2); in aes_keysched_base()
374 return num_rounds; in aes_keysched_base()
387 unsigned u, num_rounds; in aes_ct_keysched() local
389 num_rounds = aes_keysched_base(skey, key, key_len); in aes_ct_keysched()
390 for (u = 0; u <= num_rounds; u ++) { in aes_ct_keysched()
407 return num_rounds; in aes_ct_keysched()
417 unsigned num_rounds, const uint32_t *comp_skey) in aes_ct_skey_expand() argument
421 n = (num_rounds + 1) << 2; in aes_ct_skey_expand()
507 aes_ct_bitslice_encrypt(unsigned num_rounds, in aes_ct_bitslice_encrypt() argument
513 for (u = 1; u < num_rounds; u ++) { in aes_ct_bitslice_encrypt()
521 add_round_key(q, skey + (num_rounds << 3)); in aes_ct_bitslice_encrypt()
642 aes_ct_bitslice_decrypt(unsigned num_rounds, in aes_ct_bitslice_decrypt() argument
647 add_round_key(q, skey + (num_rounds << 3)); in aes_ct_bitslice_decrypt()
648 for (u = num_rounds - 1; u > 0; u --) { in aes_ct_bitslice_decrypt()
663 ctx->num_rounds = aes_ct_keysched(ctx->sk, key, len); in AES_Setkey()
664 if (ctx->num_rounds == 0) in AES_Setkey()
666 aes_ct_skey_expand(ctx->sk_exp, ctx->num_rounds, ctx->sk); in AES_Setkey()
693 aes_ct_bitslice_encrypt(ctx->num_rounds, ctx->sk_exp, q); in AES_Encrypt_ECB()
736 aes_ct_bitslice_decrypt(ctx->num_rounds, ctx->sk_exp, q); in AES_Decrypt_ECB()