Lines Matching refs:tfm
269 struct crypto_sync_skcipher *tfm; in gss_krb5_alloc_cipher_v2() local
271 tfm = crypto_alloc_sync_skcipher(cname, 0, 0); in gss_krb5_alloc_cipher_v2()
272 if (IS_ERR(tfm)) in gss_krb5_alloc_cipher_v2()
274 if (crypto_sync_skcipher_setkey(tfm, key->data, key->len)) { in gss_krb5_alloc_cipher_v2()
275 crypto_free_sync_skcipher(tfm); in gss_krb5_alloc_cipher_v2()
278 return tfm; in gss_krb5_alloc_cipher_v2()
284 struct crypto_ahash *tfm; in gss_krb5_alloc_hash_v2() local
286 tfm = crypto_alloc_ahash(kctx->gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC); in gss_krb5_alloc_hash_v2()
287 if (IS_ERR(tfm)) in gss_krb5_alloc_hash_v2()
289 if (crypto_ahash_setkey(tfm, key->data, key->len)) { in gss_krb5_alloc_hash_v2()
290 crypto_free_ahash(tfm); in gss_krb5_alloc_hash_v2()
293 return tfm; in gss_krb5_alloc_hash_v2()