Lines Matching defs:hashname
87 static int kdf_alloc(struct kdf_sdesc **sdesc_ret, char *hashname)
95 tfm = crypto_alloc_shash(hashname, 0, 0);
97 pr_info("could not allocate digest TFM handle %s\n", hashname);
255 char *hashname;
269 hashname = strndup_user(kdfcopy->hashname, CRYPTO_MAX_ALG_NAME);
270 if (IS_ERR(hashname)) {
271 ret = PTR_ERR(hashname);
276 ret = kdf_alloc(&sdesc, hashname);
277 kfree(hashname);