]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: restric hmac options for gen-tls-key
authorMartin George <marting@netapp.com>
Thu, 14 Dec 2023 07:32:54 +0000 (13:02 +0530)
committerDaniel Wagner <wagi@monom.org>
Thu, 14 Dec 2023 12:25:13 +0000 (13:25 +0100)
commitfcffc2d3794b6b16ec408bef8dc35316cc3c39e2
tree8c7fec951fa1655735e5b95efc29650d73772666
parent5c1b231a04fd845e3b608be598b227261511eeef
nvme: restric hmac options for gen-tls-key

During nvme gen-tls-key generation, the permitted hmac options is 1
for SHA-256 & 2 for SHA-384 respectively for the retained key. But
nvme-cli mistakenly permits an additional option 3 too which defaults
to SHA-256 itself. Rectify this.

Signed-off-by: Martin George <marting@netapp.com>
nvme.c