aboutsummaryrefslogtreecommitdiff
path: root/include/crypto/block.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/crypto/block.h')
-rw-r--r--include/crypto/block.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/crypto/block.h b/include/crypto/block.h
index 4f63a37..d0d97f5 100644
--- a/include/crypto/block.h
+++ b/include/crypto/block.h
@@ -66,6 +66,7 @@ bool qcrypto_block_has_format(QCryptoBlockFormat format,
typedef enum {
QCRYPTO_BLOCK_OPEN_NO_IO = (1 << 0),
+ QCRYPTO_BLOCK_OPEN_DETACHED = (1 << 1),
} QCryptoBlockOpenFlags;
/**
@@ -95,6 +96,10 @@ typedef enum {
* metadata such as the payload offset. There will be
* no cipher or ivgen objects available.
*
+ * If @flags contains QCRYPTO_BLOCK_OPEN_DETACHED then
+ * the open process will be optimized to skip the LUKS
+ * payload overlap check.
+ *
* If any part of initializing the encryption context
* fails an error will be returned. This could be due
* to the volume being in the wrong format, a cipher