Lines Matching refs:shash_tfm
267 struct crypto_shash *shash_tfm; in nvmet_auth_host_hash() local
281 shash_tfm = crypto_alloc_shash(hash_name, 0, 0); in nvmet_auth_host_hash()
282 if (IS_ERR(shash_tfm)) { in nvmet_auth_host_hash()
284 return PTR_ERR(shash_tfm); in nvmet_auth_host_hash()
287 if (shash_len != crypto_shash_digestsize(shash_tfm)) { in nvmet_auth_host_hash()
290 crypto_shash_digestsize(shash_tfm)); in nvmet_auth_host_hash()
301 ret = crypto_shash_setkey(shash_tfm, host_response, in nvmet_auth_host_hash()
325 shash = kzalloc(sizeof(*shash) + crypto_shash_descsize(shash_tfm), in nvmet_auth_host_hash()
331 shash->tfm = shash_tfm; in nvmet_auth_host_hash()
372 crypto_free_shash(shash_tfm); in nvmet_auth_host_hash()
379 struct crypto_shash *shash_tfm; in nvmet_auth_ctrl_hash() local
393 shash_tfm = crypto_alloc_shash(hash_name, 0, 0); in nvmet_auth_ctrl_hash()
394 if (IS_ERR(shash_tfm)) { in nvmet_auth_ctrl_hash()
396 return PTR_ERR(shash_tfm); in nvmet_auth_ctrl_hash()
399 if (shash_len != crypto_shash_digestsize(shash_tfm)) { in nvmet_auth_ctrl_hash()
402 crypto_shash_digestsize(shash_tfm)); in nvmet_auth_ctrl_hash()
414 ret = crypto_shash_setkey(shash_tfm, ctrl_response, in nvmet_auth_ctrl_hash()
434 shash = kzalloc(sizeof(*shash) + crypto_shash_descsize(shash_tfm), in nvmet_auth_ctrl_hash()
440 shash->tfm = shash_tfm; in nvmet_auth_ctrl_hash()
482 crypto_free_shash(shash_tfm); in nvmet_auth_ctrl_hash()