Home
last modified time | relevance | path

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

/linux-4.19.296/fs/crypto/
Dkeyinfo.c282 struct crypto_skcipher *ctfm; in fscrypt_get_encryption_info() local
346 ctfm = crypto_alloc_skcipher(mode->cipher_str, 0, 0); in fscrypt_get_encryption_info()
347 if (IS_ERR(ctfm)) { in fscrypt_get_encryption_info()
348 res = PTR_ERR(ctfm); in fscrypt_get_encryption_info()
365 crypto_skcipher_alg(ctfm)->base.cra_driver_name); in fscrypt_get_encryption_info()
367 crypt_info->ci_ctfm = ctfm; in fscrypt_get_encryption_info()
368 crypto_skcipher_set_flags(ctfm, CRYPTO_TFM_REQ_WEAK_KEY); in fscrypt_get_encryption_info()
369 res = crypto_skcipher_setkey(ctfm, raw_key, mode->keysize); in fscrypt_get_encryption_info()