Lines Matching defs:ctx
32 struct p8_aes_ctx *ctx = crypto_tfm_ctx(tfm);
46 ctx->fallback = fallback;
53 struct p8_aes_ctx *ctx = crypto_tfm_ctx(tfm);
55 if (ctx->fallback) {
56 crypto_free_cipher(ctx->fallback);
57 ctx->fallback = NULL;
65 struct p8_aes_ctx *ctx = crypto_tfm_ctx(tfm);
70 ret = aes_p8_set_encrypt_key(key, keylen * 8, &ctx->enc_key);
71 ret |= aes_p8_set_decrypt_key(key, keylen * 8, &ctx->dec_key);
76 ret |= crypto_cipher_setkey(ctx->fallback, key, keylen);
83 struct p8_aes_ctx *ctx = crypto_tfm_ctx(tfm);
86 crypto_cipher_encrypt_one(ctx->fallback, dst, src);
91 aes_p8_encrypt(src, dst, &ctx->enc_key);
100 struct p8_aes_ctx *ctx = crypto_tfm_ctx(tfm);
103 crypto_cipher_decrypt_one(ctx->fallback, dst, src);
108 aes_p8_decrypt(src, dst, &ctx->dec_key);