From 956ea10f56ce080c8e8d46ae3ebed2a6ac3764d9 Mon Sep 17 00:00:00 2001 From: Michal Virgovic Date: Fri, 13 Oct 2017 09:34:23 +0200 Subject: [PATCH] Integritysetup manual correction (key size). Also mention key size in header struct doc. --- lib/libcryptsetup.h | 6 +++--- man/integritysetup.8 | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libcryptsetup.h b/lib/libcryptsetup.h index 096ab3c7..c302e72b 100644 --- a/lib/libcryptsetup.h +++ b/lib/libcryptsetup.h @@ -454,15 +454,15 @@ struct crypt_params_integrity { uint32_t sector_size; /**< sector size in bytes */ uint32_t buffer_sectors; /**< number of sectors in one buffer */ const char *integrity; /**< integrity algorithm, NULL for LUKS2 */ - uint32_t integrity_key_size; /**< integrity key size, info only, 0 for LUKS2 */ + uint32_t integrity_key_size; /**< integrity key size in bytes, info only, 0 for LUKS2 */ const char *journal_integrity; /**< journal integrity algorithm */ const char *journal_integrity_key; /**< journal integrity key, only for crypt_load */ - uint32_t journal_integrity_key_size; /**< journal integrity key size, only for crypt_load */ + uint32_t journal_integrity_key_size; /**< journal integrity key size in bytes, only for crypt_load */ const char *journal_crypt; /**< journal encryption algorithm */ const char *journal_crypt_key; /**< journal crypt key, only for crypt_load */ - uint32_t journal_crypt_key_size; /**< journal crypt key size, only for crypt_load */ + uint32_t journal_crypt_key_size; /**< journal crypt key size in bytes, only for crypt_load */ }; /** diff --git a/man/integritysetup.8 b/man/integritysetup.8 index 96e36c85..d1890026 100644 --- a/man/integritysetup.8 +++ b/man/integritysetup.8 @@ -106,7 +106,7 @@ The integrity algorithm can be CRC (crc32c/crc32) or hash function (sha1, sha256 For HMAC (hmac-sha256) you have also to specify an integrity key and its size. .TP -.B "\-\-integrity\-key\-size BITS" +.B "\-\-integrity\-key\-size BYTES" The size of the data integrity key. .TP .B "\-\-integrity\-key\-file FILE" @@ -131,7 +131,7 @@ these options are internally used in authenticated disk encryption with \fBcrypt Integrity algorithm for journal area. See \-\-integrity option for detailed specification. .TP -.B "\-\-journal\-integrity\-key\-size BITS" +.B "\-\-journal\-integrity\-key\-size BYTES" The size of the journal integrity key. .TP .B "\-\-journal\-integrity\-key\-file FILE" @@ -142,7 +142,7 @@ Encryption algorithm for journal data area. You can use a block cipher here such as cbc(aes) or a stream cipher, for example, chacha20 or ctr(aes). .TP -.B "\-\-journal\-crypt\-key\-size BITS" +.B "\-\-journal\-crypt\-key\-size BYTES" The size of the journal encryption key. .TP .B "\-\-journal\-crypt\-key\-file FILE"