Lines Matching refs:ctx
80 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm);
88 ctx->rounds = 6 + key_len / 4;
91 aesbs_convert_key(ctx->rk, rk.key_enc, ctx->rounds);
102 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm);
116 fn(walk.dst.virt.addr, walk.src.virt.addr, ctx->rk,
117 ctx->rounds, blocks);
139 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm);
147 ctx->key.rounds = 6 + key_len / 4;
149 memcpy(ctx->enc, rk.key_enc, sizeof(ctx->enc));
152 aesbs_convert_key(ctx->key.rk, rk.key_enc, ctx->key.rounds);
162 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm);
174 ctx->enc, ctx->key.rounds, blocks,
185 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm);
200 ctx->key.rk, ctx->key.rounds, blocks,
213 struct aesbs_ctr_ctx *ctx = crypto_skcipher_ctx(tfm);
216 err = aes_expandkey(&ctx->fallback, in_key, key_len);
220 ctx->key.rounds = 6 + key_len / 4;
223 aesbs_convert_key(ctx->key.rk, ctx->fallback.key_enc, ctx->key.rounds);
232 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm);
251 ctx->rk, ctx->rounds, blocks, walk.iv, final);
273 struct aesbs_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
282 err = aes_expandkey(&ctx->cts, in_key, key_len);
290 memcpy(ctx->twkey, rk.key_enc, sizeof(ctx->twkey));
297 struct aesbs_ctr_ctx *ctx = crypto_skcipher_ctx(tfm);
306 aes_encrypt(&ctx->fallback, dst, src);
323 struct aesbs_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
372 ctx->twkey,
373 ctx->key.rounds, 1);
376 fn(out, in, ctx->key.rk, ctx->key.rounds, blocks,
413 neon_aes_xts_encrypt(out, in, ctx->cts.key_enc, ctx->key.rounds,
414 nbytes, ctx->twkey, walk.iv, first ?: 2);
416 neon_aes_xts_decrypt(out, in, ctx->cts.key_dec, ctx->key.rounds,
417 nbytes, ctx->twkey, walk.iv, first ?: 2);