Lines Matching refs:tfm
15 struct crypto_skcipher *tfm = NULL;
26 * Allocate a tfm (a transformation object) and set the key.
28 * In real-world use, a tfm and key are typically used for many
33 tfm = crypto_alloc_skcipher("xts(aes)", 0, 0);
34 if (IS_ERR(tfm)) {
35 pr_err("Error allocating xts(aes) handle: %ld\n", PTR_ERR(tfm));
36 return PTR_ERR(tfm);
40 err = crypto_skcipher_setkey(tfm, key, sizeof(key));
47 req = skcipher_request_alloc(tfm, GFP_KERNEL);
86 crypto_free_skcipher(tfm);
113 sdesc->shash.tfm = alg;