Lines Matching refs:tfms
162 struct crypto_skcipher **tfms; member
231 return cc->cipher_tfm.tfms[0]; in any_tfm()
1141 skcipher_request_set_tfm(ctx->r.req, cc->cipher_tfm.tfms[key_index]); in crypt_alloc_req_skcipher()
1742 if (!cc->cipher_tfm.tfms) in crypt_free_tfms_skcipher()
1746 if (cc->cipher_tfm.tfms[i] && !IS_ERR(cc->cipher_tfm.tfms[i])) { in crypt_free_tfms_skcipher()
1747 crypto_free_skcipher(cc->cipher_tfm.tfms[i]); in crypt_free_tfms_skcipher()
1748 cc->cipher_tfm.tfms[i] = NULL; in crypt_free_tfms_skcipher()
1751 kfree(cc->cipher_tfm.tfms); in crypt_free_tfms_skcipher()
1752 cc->cipher_tfm.tfms = NULL; in crypt_free_tfms_skcipher()
1768 cc->cipher_tfm.tfms = kcalloc(cc->tfms_count, in crypt_alloc_tfms_skcipher()
1771 if (!cc->cipher_tfm.tfms) in crypt_alloc_tfms_skcipher()
1775 cc->cipher_tfm.tfms[i] = crypto_alloc_skcipher(ciphermode, 0, 0); in crypt_alloc_tfms_skcipher()
1776 if (IS_ERR(cc->cipher_tfm.tfms[i])) { in crypt_alloc_tfms_skcipher()
1777 err = PTR_ERR(cc->cipher_tfm.tfms[i]); in crypt_alloc_tfms_skcipher()
1797 cc->cipher_tfm.tfms = kmalloc(sizeof(struct crypto_aead *), GFP_KERNEL); in crypt_alloc_tfms_aead()
1798 if (!cc->cipher_tfm.tfms) in crypt_alloc_tfms_aead()
1879 r = crypto_skcipher_setkey(cc->cipher_tfm.tfms[i], in crypt_setkey()