Lines Matching refs:key_enc
80 struct aes_block *key_enc, *key_dec; in ce_aes_expandkey() local
90 ctx->key_enc[i] = get_unaligned_le32(in_key + i * sizeof(u32)); in ce_aes_expandkey()
94 u32 *rki = ctx->key_enc + (i * kwords); in ce_aes_expandkey()
124 key_enc = (struct aes_block *)ctx->key_enc; in ce_aes_expandkey()
128 key_dec[0] = key_enc[j]; in ce_aes_expandkey()
130 ce_aes_invert(key_dec + i, key_enc + j); in ce_aes_expandkey()
131 key_dec[i] = key_enc[0]; in ce_aes_expandkey()
180 ctx->key_enc, num_rounds(ctx), blocks); in ecb_encrypt()
218 ctx->key_enc, num_rounds(ctx), blocks, in cbc_encrypt_walk()
318 ctx->key_enc, num_rounds(ctx), walk.nbytes, in cts_cbc_encrypt()
395 ctx->key_enc, num_rounds(ctx), blocks, in ctr_encrypt()
412 ce_aes_ctr_encrypt(tail, NULL, ctx->key_enc, num_rounds(ctx), in ctr_encrypt()
487 ctx->key1.key_enc, rounds, nbytes, walk.iv, in xts_encrypt()
488 ctx->key2.key_enc, first); in xts_encrypt()
509 ctx->key1.key_enc, rounds, walk.nbytes, walk.iv, in xts_encrypt()
510 ctx->key2.key_enc, first); in xts_encrypt()
560 ctx->key2.key_enc, first); in xts_decrypt()
582 ctx->key2.key_enc, first); in xts_decrypt()