Home
last modified time | relevance | path

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

/fs/ext4/
Dcrypto_key.c123 struct crypto_ablkcipher *ctfm; in ext4_get_encryption_info() local
233 ctfm = crypto_alloc_ablkcipher(cipher_str, 0, 0); in ext4_get_encryption_info()
234 if (!ctfm || IS_ERR(ctfm)) { in ext4_get_encryption_info()
235 res = ctfm ? PTR_ERR(ctfm) : -ENOMEM; in ext4_get_encryption_info()
241 crypt_info->ci_ctfm = ctfm; in ext4_get_encryption_info()
242 crypto_ablkcipher_clear_flags(ctfm, ~0); in ext4_get_encryption_info()
243 crypto_tfm_set_flags(crypto_ablkcipher_tfm(ctfm), in ext4_get_encryption_info()
245 res = crypto_ablkcipher_setkey(ctfm, raw_key, in ext4_get_encryption_info()
/fs/crypto/
Dkeyinfo.c258 struct crypto_ablkcipher *ctfm; in fscrypt_get_encryption_info() local
331 ctfm = crypto_alloc_ablkcipher(cipher_str, 0, 0); in fscrypt_get_encryption_info()
332 if (!ctfm || IS_ERR(ctfm)) { in fscrypt_get_encryption_info()
333 res = ctfm ? PTR_ERR(ctfm) : -ENOMEM; in fscrypt_get_encryption_info()
338 crypt_info->ci_ctfm = ctfm; in fscrypt_get_encryption_info()
339 crypto_ablkcipher_clear_flags(ctfm, ~0); in fscrypt_get_encryption_info()
340 crypto_ablkcipher_set_flags(ctfm, CRYPTO_TFM_REQ_WEAK_KEY); in fscrypt_get_encryption_info()
345 res = crypto_ablkcipher_setkey(ctfm, raw_key, keysize); in fscrypt_get_encryption_info()