+20
−0
Loading
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>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16058
(master)
(cherry picked from commit 34083991)
Change-Id: I92edc71f5f4dfeb0d08a34b73424675321e4740e
Signed-off-by:
Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16483
Reviewed-by:
Jim Harris <james.r.harris@intel.com>
Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>