Re: [PATCH 06/11] nvme: Implement In-Band authentication
From: Vladislav Bolkhovitin <hidden>
Date: 2021-07-20 20:28:54
Also in:
linux-crypto
From: Vladislav Bolkhovitin <hidden>
Date: 2021-07-20 20:28:54
Also in:
linux-crypto
On 7/16/21 2:04 PM, Hannes Reinecke wrote: [...]
+struct nvmet_dhchap_hash_map {
+ int id;
+ int hash_len;
+ const char hmac[15];
+ const char digest[15];
+} hash_map[] = {
+ {.id = NVME_AUTH_DHCHAP_HASH_SHA256,
+ .hash_len = 32,
+ .hmac = "hmac(sha256)", .digest = "sha256" },
+ {.id = NVME_AUTH_DHCHAP_HASH_SHA384,
+ .hash_len = 48,
+ .hmac = "hmac(sha384)", .digest = "sha384" },
+ {.id = NVME_AUTH_DHCHAP_HASH_SHA512,
+ .hash_len = 64,
+ .hmac = "hmac(sha512)", .digest = "sha512" },
+};"hmac()" is always here, so why not to just auto-generate hmac(sha512) from sha512? Vlad _______________________________________________ Linux-nvme mailing list Linux-nvme@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-nvme