Searched refs:ctfm (Results 1 – 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/drivers/hyperhold/ |
D | hp_device.c | 91 int soft_crypt_page(struct crypto_skcipher *ctfm, struct page *dst_page, in soft_crypt_page() argument 103 req = skcipher_request_alloc(ctfm, GFP_NOIO); in soft_crypt_page() 135 struct crypto_skcipher *ctfm = NULL; in soft_crypto_init() local 138 ctfm = crypto_alloc_skcipher(cipher, 0, 0); in soft_crypto_init() 139 if (IS_ERR(ctfm)) { in soft_crypto_init() 140 pr_err("alloc ctfm failed, ret = %ld!\n", PTR_ERR(ctfm)); in soft_crypto_init() 141 ctfm = NULL; in soft_crypto_init() 144 crypto_skcipher_clear_flags(ctfm, ~0); in soft_crypto_init() 145 crypto_skcipher_set_flags(ctfm, CRYPTO_TFM_REQ_FORBID_WEAK_KEYS); in soft_crypto_init() 146 ret = crypto_skcipher_setkey(ctfm, key, key_len); in soft_crypto_init() [all …]
|
D | hp_device.h | 27 struct crypto_skcipher *ctfm; member 35 int soft_crypt_page(struct crypto_skcipher *ctfm,
|
D | hp_core.c | 620 if (!dev->ctfm) { in get_encrypted_page() 638 if (soft_crypt_page(dev->ctfm, encrypted_page, page, HP_DEV_ENCRYPT)) { in get_encrypted_page() 676 if (dev->ctfm) in hp_endio_work() 677 BUG_ON(soft_crypt_page(dev->ctfm, hpio->pages[i], page, HP_DEV_DECRYPT)); in hp_endio_work()
|
/kernel/linux/linux-5.10/drivers/crypto/inside-secure/ |
D | safexcel_cipher.c | 371 static int safexcel_skcipher_aes_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_aes_setkey() argument 374 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_aes_setkey() 402 static int safexcel_aead_setkey(struct crypto_aead *ctfm, const u8 *key, in safexcel_aead_setkey() argument 405 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_setkey() 430 err = verify_aead_des_key(ctfm, keys.enckey, keys.enckeylen); in safexcel_aead_setkey() 435 err = verify_aead_des3_key(ctfm, keys.enckey, keys.enckeylen); in safexcel_aead_setkey() 1411 static int safexcel_skcipher_aesctr_setkey(struct crypto_skcipher *ctfm, in safexcel_skcipher_aesctr_setkey() argument 1414 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_aesctr_setkey() 1486 static int safexcel_des_setkey(struct crypto_skcipher *ctfm, const u8 *key, in safexcel_des_setkey() argument 1489 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_des_setkey() [all …]
|