Home
last modified time | relevance | path

Searched refs:cipher_tfm (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/drivers/md/
Ddm-crypt.c173 } cipher_tfm; member
240 return cc->cipher_tfm.tfms[0]; in any_tfm()
245 return cc->cipher_tfm.tfms_aead[0]; in any_tfm_aead()
1247 skcipher_request_set_tfm(ctx->r.req, cc->cipher_tfm.tfms[key_index]); in crypt_alloc_req_skcipher()
1264 aead_request_set_tfm(ctx->r.req_aead, cc->cipher_tfm.tfms_aead[0]); in crypt_alloc_req_aead()
1831 if (!cc->cipher_tfm.tfms_aead) in crypt_free_tfms_aead()
1834 if (cc->cipher_tfm.tfms_aead[0] && !IS_ERR(cc->cipher_tfm.tfms_aead[0])) { in crypt_free_tfms_aead()
1835 crypto_free_aead(cc->cipher_tfm.tfms_aead[0]); in crypt_free_tfms_aead()
1836 cc->cipher_tfm.tfms_aead[0] = NULL; in crypt_free_tfms_aead()
1839 kfree(cc->cipher_tfm.tfms_aead); in crypt_free_tfms_aead()
[all …]
/Linux-v4.19/drivers/crypto/ccp/
Dccp-crypto-aes-cmac.c342 struct crypto_cipher *cipher_tfm; in ccp_aes_cmac_cra_init() local
349 cipher_tfm = crypto_alloc_cipher("aes", 0, in ccp_aes_cmac_cra_init()
352 if (IS_ERR(cipher_tfm)) { in ccp_aes_cmac_cra_init()
354 return PTR_ERR(cipher_tfm); in ccp_aes_cmac_cra_init()
356 ctx->u.aes.tfm_cipher = cipher_tfm; in ccp_aes_cmac_cra_init()
/Linux-v4.19/crypto/
Dcipher.c109 struct cipher_tfm *ops = &tfm->crt_cipher; in crypto_init_cipher_ops()
/Linux-v4.19/include/linux/
Dcrypto.h572 struct cipher_tfm { struct
600 struct cipher_tfm cipher;
1504 static inline struct cipher_tfm *crypto_cipher_crt(struct crypto_cipher *tfm) in crypto_cipher_crt()