Lines Matching refs:tfm
38 static int ccp_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in ccp_aes_setkey() argument
41 struct ccp_crypto_skcipher_alg *alg = ccp_crypto_skcipher_alg(tfm); in ccp_aes_setkey()
42 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in ccp_aes_setkey()
68 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ccp_aes_crypt() local
69 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in ccp_aes_crypt()
120 static int ccp_aes_init_tfm(struct crypto_skcipher *tfm) in ccp_aes_init_tfm() argument
122 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in ccp_aes_init_tfm()
127 crypto_skcipher_set_reqsize(tfm, sizeof(struct ccp_aes_req_ctx)); in ccp_aes_init_tfm()
144 static int ccp_aes_rfc3686_setkey(struct crypto_skcipher *tfm, const u8 *key, in ccp_aes_rfc3686_setkey() argument
147 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in ccp_aes_rfc3686_setkey()
155 return ccp_aes_setkey(tfm, key, key_len); in ccp_aes_rfc3686_setkey()
160 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ccp_aes_rfc3686_crypt() local
161 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in ccp_aes_rfc3686_crypt()
192 static int ccp_aes_rfc3686_init_tfm(struct crypto_skcipher *tfm) in ccp_aes_rfc3686_init_tfm() argument
194 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in ccp_aes_rfc3686_init_tfm()
199 crypto_skcipher_set_reqsize_dma(tfm, sizeof(struct ccp_aes_req_ctx)); in ccp_aes_rfc3686_init_tfm()