Lines Matching refs:tfm

28 	struct ccp_ctx *ctx = crypto_tfm_ctx(req->base.tfm);  in ccp_aes_complete()
40 static int ccp_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in ccp_aes_setkey() argument
43 struct ccp_ctx *ctx = crypto_tfm_ctx(crypto_ablkcipher_tfm(tfm)); in ccp_aes_setkey()
45 ccp_crypto_ablkcipher_alg(crypto_ablkcipher_tfm(tfm)); in ccp_aes_setkey()
58 crypto_ablkcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in ccp_aes_setkey()
72 struct ccp_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in ccp_aes_crypt()
127 static int ccp_aes_cra_init(struct crypto_tfm *tfm) in ccp_aes_cra_init() argument
129 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_aes_cra_init()
134 tfm->crt_ablkcipher.reqsize = sizeof(struct ccp_aes_req_ctx); in ccp_aes_cra_init()
139 static void ccp_aes_cra_exit(struct crypto_tfm *tfm) in ccp_aes_cra_exit() argument
155 static int ccp_aes_rfc3686_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in ccp_aes_rfc3686_setkey() argument
158 struct ccp_ctx *ctx = crypto_tfm_ctx(crypto_ablkcipher_tfm(tfm)); in ccp_aes_rfc3686_setkey()
166 return ccp_aes_setkey(tfm, key, key_len); in ccp_aes_rfc3686_setkey()
171 struct ccp_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in ccp_aes_rfc3686_crypt()
202 static int ccp_aes_rfc3686_cra_init(struct crypto_tfm *tfm) in ccp_aes_rfc3686_cra_init() argument
204 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_aes_rfc3686_cra_init()
209 tfm->crt_ablkcipher.reqsize = sizeof(struct ccp_aes_req_ctx); in ccp_aes_rfc3686_cra_init()
214 static void ccp_aes_rfc3686_cra_exit(struct crypto_tfm *tfm) in ccp_aes_rfc3686_cra_exit() argument