Lines Matching defs:tfm
113 struct crypto_shash *tfm;
118 tfm = crypto_alloc_shash("md5", 0, 0);
119 if (IS_ERR(tfm)) {
120 status = PTR_ERR(tfm);
124 cksum.len = crypto_shash_digestsize(tfm);
131 status = crypto_shash_tfm_digest(tfm, clname->data, clname->len,
141 crypto_free_shash(tfm);
1149 struct crypto_shash *tfm = cn->cn_tfm;
1173 cksum.len = crypto_shash_digestsize(tfm);
1179 ret = crypto_shash_tfm_digest(tfm, principal, strlen(principal),
1341 struct crypto_shash *tfm = cn->cn_tfm;
1386 cksum.len = crypto_shash_digestsize(tfm);
1390 status = crypto_shash_tfm_digest(tfm, principal,
1581 struct crypto_shash *tfm;
1606 tfm = crypto_alloc_shash("sha256", 0, 0);
1607 if (IS_ERR(tfm)) {
1608 status = PTR_ERR(tfm);
1611 nn->cld_net->cn_tfm = tfm;