Lines Matching refs:ctx
25 struct p8_aes_ctr_ctx *ctx = crypto_skcipher_ctx(tfm);
39 ctx->fallback = fallback;
45 struct p8_aes_ctr_ctx *ctx = crypto_skcipher_ctx(tfm);
47 crypto_free_skcipher(ctx->fallback);
53 struct p8_aes_ctr_ctx *ctx = crypto_skcipher_ctx(tfm);
59 ret = aes_p8_set_encrypt_key(key, keylen * 8, &ctx->enc_key);
64 ret |= crypto_skcipher_setkey(ctx->fallback, key, keylen);
69 static void p8_aes_ctr_final(const struct p8_aes_ctr_ctx *ctx,
81 aes_p8_encrypt(ctrblk, keystream, &ctx->enc_key);
93 const struct p8_aes_ctr_ctx *ctx = crypto_skcipher_ctx(tfm);
102 skcipher_request_set_tfm(subreq, ctx->fallback);
114 &ctx->enc_key, walk.iv);
126 p8_aes_ctr_final(ctx, &walk);