Hi! This patch series is the refactoring/preparation part of the former patch series I had sent which adds support for luks key management.
I tried my best to address all the comments that were given during the review, and I would like to use that opportunity to thanks again for the review I was given. Best regards, Maxim Levitsky Maxim Levitsky (13): introduce g_autowipe block-crypto: misc refactoring qcrypto-luks: rename some fields in QCryptoBlockLUKSHeader qcrypto-luks: don't overwrite cipher_mode in header qcrypto-luks: simplify masterkey and masterkey length qcrypto-block: pass keyslot index rather that pointer to the keyslot qcrypto-luks: use the parsed encryption settings in QCryptoBlockLUKS qcrypto-luks: extract store and load header qcrypto-block: extract check and parse header qcrypto-luks: refactoring: extract store key function qcrypto-luks: refactoring: simplify the math used for keyslot locations qcrypto-luks: use g_autowipe qcrypto-luks: implement more rigorous header checking block/crypto.c | 12 +- crypto/block-luks.c | 1046 +++++++++++++++++++++++++------------------ include/autowipe.h | 52 +++ 3 files changed, 666 insertions(+), 444 deletions(-) create mode 100644 include/autowipe.h -- 2.17.2