Lines Matching refs:tfm
112 struct crypto_shash *tfm; in nfs4_make_rec_clidname() local
117 tfm = crypto_alloc_shash("md5", 0, 0); in nfs4_make_rec_clidname()
118 if (IS_ERR(tfm)) { in nfs4_make_rec_clidname()
119 status = PTR_ERR(tfm); in nfs4_make_rec_clidname()
123 cksum.len = crypto_shash_digestsize(tfm); in nfs4_make_rec_clidname()
130 status = crypto_shash_tfm_digest(tfm, clname->data, clname->len, in nfs4_make_rec_clidname()
140 crypto_free_shash(tfm); in nfs4_make_rec_clidname()
1148 struct crypto_shash *tfm = cn->cn_tfm; in nfsd4_cld_create_v2() local
1172 cksum.len = crypto_shash_digestsize(tfm); in nfsd4_cld_create_v2()
1178 ret = crypto_shash_tfm_digest(tfm, principal, strlen(principal), in nfsd4_cld_create_v2()
1340 struct crypto_shash *tfm = cn->cn_tfm; in nfsd4_cld_check_v2() local
1380 cksum.len = crypto_shash_digestsize(tfm); in nfsd4_cld_check_v2()
1384 status = crypto_shash_tfm_digest(tfm, principal, in nfsd4_cld_check_v2()
1575 struct crypto_shash *tfm; in nfsd4_cld_tracking_init() local
1600 tfm = crypto_alloc_shash("sha256", 0, 0); in nfsd4_cld_tracking_init()
1601 if (IS_ERR(tfm)) { in nfsd4_cld_tracking_init()
1602 status = PTR_ERR(tfm); in nfsd4_cld_tracking_init()
1605 nn->cld_net->cn_tfm = tfm; in nfsd4_cld_tracking_init()