Lines Matching refs:shash_tfm
266 struct crypto_shash *shash_tfm; in nvmet_auth_host_hash() local
280 shash_tfm = crypto_alloc_shash(hash_name, 0, 0); in nvmet_auth_host_hash()
281 if (IS_ERR(shash_tfm)) { in nvmet_auth_host_hash()
283 return PTR_ERR(shash_tfm); in nvmet_auth_host_hash()
286 if (shash_len != crypto_shash_digestsize(shash_tfm)) { in nvmet_auth_host_hash()
289 crypto_shash_digestsize(shash_tfm)); in nvmet_auth_host_hash()
300 ret = crypto_shash_setkey(shash_tfm, host_response, in nvmet_auth_host_hash()
324 shash = kzalloc(sizeof(*shash) + crypto_shash_descsize(shash_tfm), in nvmet_auth_host_hash()
330 shash->tfm = shash_tfm; in nvmet_auth_host_hash()
370 crypto_free_shash(shash_tfm); in nvmet_auth_host_hash()
377 struct crypto_shash *shash_tfm; in nvmet_auth_ctrl_hash() local
391 shash_tfm = crypto_alloc_shash(hash_name, 0, 0); in nvmet_auth_ctrl_hash()
392 if (IS_ERR(shash_tfm)) { in nvmet_auth_ctrl_hash()
394 return PTR_ERR(shash_tfm); in nvmet_auth_ctrl_hash()
397 if (shash_len != crypto_shash_digestsize(shash_tfm)) { in nvmet_auth_ctrl_hash()
400 crypto_shash_digestsize(shash_tfm)); in nvmet_auth_ctrl_hash()
412 ret = crypto_shash_setkey(shash_tfm, ctrl_response, in nvmet_auth_ctrl_hash()
432 shash = kzalloc(sizeof(*shash) + crypto_shash_descsize(shash_tfm), in nvmet_auth_ctrl_hash()
438 shash->tfm = shash_tfm; in nvmet_auth_ctrl_hash()
479 crypto_free_shash(shash_tfm); in nvmet_auth_ctrl_hash()