Lines Matching refs:tfms
176 struct crypto_skcipher **tfms;
247 return cc->cipher_tfm.tfms[0];
1470 skcipher_request_set_tfm(ctx->r.req, cc->cipher_tfm.tfms[key_index]);
2265 if (!cc->cipher_tfm.tfms)
2269 if (cc->cipher_tfm.tfms[i] && !IS_ERR(cc->cipher_tfm.tfms[i])) {
2270 crypto_free_skcipher(cc->cipher_tfm.tfms[i]);
2271 cc->cipher_tfm.tfms[i] = NULL;
2274 kfree(cc->cipher_tfm.tfms);
2275 cc->cipher_tfm.tfms = NULL;
2291 cc->cipher_tfm.tfms = kcalloc(cc->tfms_count,
2294 if (!cc->cipher_tfm.tfms)
2298 cc->cipher_tfm.tfms[i] = crypto_alloc_skcipher(ciphermode, 0,
2300 if (IS_ERR(cc->cipher_tfm.tfms[i])) {
2301 err = PTR_ERR(cc->cipher_tfm.tfms[i]);
2321 cc->cipher_tfm.tfms = kmalloc(sizeof(struct crypto_aead *), GFP_KERNEL);
2322 if (!cc->cipher_tfm.tfms)
2404 r = crypto_skcipher_setkey(cc->cipher_tfm.tfms[i],