Lines Matching defs:tfm
55 struct crypto_skcipher *tfm = crypto_alloc_skcipher("ecb(aes)", 0, 0);
57 if (IS_ERR(tfm)) {
58 res = PTR_ERR(tfm);
59 tfm = NULL;
62 crypto_skcipher_set_flags(tfm, CRYPTO_TFM_REQ_FORBID_WEAK_KEYS);
63 req = skcipher_request_alloc(tfm, GFP_KERNEL);
71 res = crypto_skcipher_setkey(tfm, nonce, FSCRYPT_FILE_NONCE_SIZE);
82 crypto_free_skcipher(tfm);
208 /* using existing tfm with same (descriptor, mode, raw_key) */
227 /* Is there already a tfm for this key? */