]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: crypto alignment support 37680/head
authorOr Ozeri <oro@il.ibm.com>
Sun, 18 Oct 2020 16:10:13 +0000 (19:10 +0300)
committerOr Ozeri <oro@il.ibm.com>
Sun, 25 Oct 2020 08:13:09 +0000 (10:13 +0200)
commit11fb90757d5fbd29bc5bd48c1e6f3fa129a59e35
tree5a6833b5e21914d21d89c2221b4a44ba899e1eb2
parentb94369f7c1d9f620be89e1397abfc5714e140394
librbd: crypto alignment support

This commit extents the recently added CryptoObjectDispatch layer to support block ciphers (as opposed to stream ciphers).
In other words, the crypto layer now handles the necessary data alignments before data is passed on to the crypto engine.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
src/librbd/crypto/BlockCrypto.cc
src/librbd/crypto/BlockCrypto.h
src/librbd/crypto/CryptoInterface.h
src/librbd/crypto/CryptoObjectDispatch.cc
src/librbd/crypto/CryptoObjectDispatch.h
src/test/librbd/crypto/test_mock_CryptoObjectDispatch.cc
src/test/librbd/mock/crypto/MockCryptoInterface.h