Hannes Reinecke f50fff73d6 nvme: implement In-Band authentication
Implement NVMe-oF In-Band authentication according to NVMe TPAR 8006.
This patch adds two new fabric options 'dhchap_secret' to specify the
pre-shared key (in ASCII respresentation according to NVMe 2.0 section
8.13.5.8 'Secret representation') and 'dhchap_ctrl_secret' to specify
the pre-shared controller key for bi-directional authentication of both
the host and the controller.
Re-authentication can be triggered by writing the PSK into the new
controller sysfs attribute 'dhchap_secret' or 'dhchap_ctrl_secret'.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
[axboe: fold in clang build fix]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-08-02 17:14:49 -06:00
..
2022-08-02 11:12:25 -07:00
2022-08-02 08:10:10 -07:00
2022-07-29 19:58:52 +02:00
2022-06-28 06:33:15 -06:00
2022-08-02 08:10:10 -07:00
2022-08-02 08:10:10 -07:00
2022-07-29 13:25:31 -07:00
2022-08-02 11:07:04 -07:00
2022-08-02 08:10:10 -07:00
2022-08-02 13:46:35 -07:00
2022-07-17 07:52:46 -07:00
2022-08-02 08:29:18 -07:00
2022-06-02 15:23:54 -07:00
2022-08-02 17:14:44 -06:00
2022-06-28 06:33:15 -06:00
2022-08-02 11:12:25 -07:00
2022-08-02 13:46:35 -07:00
2022-08-02 13:46:35 -07:00
2022-08-02 13:46:35 -07:00
2022-06-02 15:23:54 -07:00
2022-07-29 19:58:52 +02:00
2022-07-29 13:41:18 +02:00
2022-06-03 11:48:47 -07:00
2022-06-02 15:23:54 -07:00
2022-08-02 13:46:35 -07:00
2022-08-02 13:46:35 -07:00
2022-06-03 11:48:47 -07:00
2022-08-02 08:10:10 -07:00
2022-08-02 10:55:04 -07:00
2022-05-11 08:29:11 +03:00
2022-08-02 13:46:35 -07:00
2022-08-02 08:10:10 -07:00
2022-08-02 13:46:35 -07:00
2022-07-29 19:58:52 +02:00
2022-06-05 09:25:12 -07:00
2022-06-05 09:25:12 -07:00