Spdk/python/spdk/sma
Michal Rozegnal 3408399172 sma: added tweak mode in sma crypto
AES-XTS requires providing tweak. By definition tweak (128bits)
represents logical position of the data being encrypted or decrypted,
typically for nvme it is LBA.
Various implementations of AES-XTS can treat that requirment
in different way, because AES-XTS specification doesn't define
how exactly tweak look like and how exactly LBA is transformed
into tweak  For example:
 - Tweak[127:0] = {1’b0, ~LBA[62:0], LBA[63:0]}
 - Tweak[127:0] = {LBA[127:0] + 1}
 - Tweak[127:0] = {LBA[63:0] + 1, 64'b0}

So there's a need of specifying mode of tweak

Signed-off-by: Michal Rozegnal <michal.rozegnal@intel.com>
Change-Id: I92edc71f5f4dfeb0d08a34b73424675321e4740e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16058
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Jacek Kalwas <jacek.kalwas@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2023-01-24 18:16:29 +00:00
..
device sma: forbid deleting devices with attached volumes 2022-12-16 09:20:52 +00:00
proto build: move protobuf files to a top-level directory 2022-10-18 07:23:54 +00:00
volume sma: added tweak mode in sma crypto 2023-01-24 18:16:29 +00:00
__init__.py Add SPDX header to various files 2022-11-29 08:27:51 +00:00
common.py Add SPDX header to various files 2022-11-29 08:27:51 +00:00
qmp.py misc: Fix spelling mistakes 2022-12-09 08:16:18 +00:00
qos.py Add SPDX header to various files 2022-11-29 08:27:51 +00:00
sma.py sma: forbid deleting devices with attached volumes 2022-12-16 09:20:52 +00:00