Lines Matching refs:tfm2
73 struct crypto_skcipher *tfm2;
116 tfm2 = crypto_alloc_skcipher("ctr(aes)", 0, CRYPTO_ALG_ASYNC);
117 if (IS_ERR(tfm2)) {
119 return PTR_ERR(tfm2);
122 res = crypto_skcipher_setkey(tfm2, key + key_len, key_len);
126 req = skcipher_request_alloc(tfm2, GFP_KERNEL);
139 crypto_free_skcipher(tfm2);
150 struct crypto_skcipher *tfm2;
175 tfm2 = crypto_alloc_skcipher("ctr(aes)", 0, CRYPTO_ALG_ASYNC);
176 if (IS_ERR(tfm2))
177 return PTR_ERR(tfm2);
179 res = crypto_skcipher_setkey(tfm2, key + key_len, key_len);
181 crypto_free_skcipher(tfm2);
185 req = skcipher_request_alloc(tfm2, GFP_KERNEL);
187 crypto_free_skcipher(tfm2);
196 crypto_free_skcipher(tfm2);