nvme-auth: use transformed key size to create resp
authorMark O'Donovan <shiftee@posteo.net>
Tue, 17 Oct 2023 17:09:18 +0000 (17:09 +0000)
committerKeith Busch <kbusch@kernel.org>
Tue, 17 Oct 2023 20:57:54 +0000 (13:57 -0700)
commitf047daed179a451657d1e66b5fe4030a593a000c
tree26d657ccd67c81069b2b9d9a8755b9d64c862bcb
parent3ebed3749f1767927229d568eea29daaf9f272d5
nvme-auth: use transformed key size to create resp

This does not change current behaviour as the driver currently
verifies that the secret size is the same size as the length of
the transformation hash.

Co-developed-by: Akash Appaiah <Akash.Appaiah@dell.com>
Signed-off-by: Akash Appaiah <Akash.Appaiah@dell.com>
Signed-off-by: Mark O'Donovan <shiftee@posteo.net>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/common/auth.c
drivers/nvme/host/auth.c
drivers/nvme/target/auth.c
include/linux/nvme-auth.h