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