]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: use 512 sector size for crypto IV
authorOr Ozeri <oro@il.ibm.com>
Thu, 21 Jan 2021 15:51:23 +0000 (17:51 +0200)
committerJason Dillaman <dillaman@redhat.com>
Tue, 26 Jan 2021 14:51:45 +0000 (09:51 -0500)
commit3544e05600d7f1c57787eb4a75c45a6b29d81ca5
tree598b39ec04dcece6003956f3397a7a31aba2529f
parent5f17c37f78a331b7a4bf793890f9d324c64183e5
librbd: use 512 sector size for crypto IV

This commit aligns with the LUKS2 format which requires plain-64 mode IV
to be derived from the 512 bytes sector number

Signed-off-by: Or Ozeri <oro@il.ibm.com>
(cherry picked from commit b11d6285a7df780cf902e508dae03accf5ee8124)
src/librbd/crypto/BlockCrypto.cc
src/test/librbd/crypto/test_mock_BlockCrypto.cc