Lines Matching defs:tfm
112 struct crypto_shash *tfm;
117 tfm = crypto_alloc_shash("md5", 0, 0);
118 if (IS_ERR(tfm)) {
119 status = PTR_ERR(tfm);
123 cksum.len = crypto_shash_digestsize(tfm);
130 status = crypto_shash_tfm_digest(tfm, clname->data, clname->len,
140 crypto_free_shash(tfm);
1140 struct crypto_shash *tfm = cn->cn_tfm;
1164 cksum.len = crypto_shash_digestsize(tfm);
1170 ret = crypto_shash_tfm_digest(tfm, principal, strlen(principal),
1332 struct crypto_shash *tfm = cn->cn_tfm;
1372 cksum.len = crypto_shash_digestsize(tfm);
1376 status = crypto_shash_tfm_digest(tfm, principal,
1567 struct crypto_shash *tfm;
1592 tfm = crypto_alloc_shash("sha256", 0, 0);
1593 if (IS_ERR(tfm)) {
1594 status = PTR_ERR(tfm);
1597 nn->cld_net->cn_tfm = tfm;