Skip to content

Commit 0779c8c

Browse files
committed
Explicitly mention units (bytes) for volume key in header.
1 parent 153aed3 commit 0779c8c

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

lib/libcryptsetup.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ int crypt_resume_by_keyfile(struct crypt_device *cd,
980980
* @param cd crypt device handle
981981
* @param name name of device to resume
982982
* @param volume_key provided volume key
983-
* @param volume_key_size size of volume_key
983+
* @param volume_key_size size of volume_key in bytes
984984
*
985985
* @return @e 0 on success or negative errno value otherwise.
986986
*/
@@ -1152,7 +1152,7 @@ int crypt_keyslot_add_by_keyfile(struct crypt_device *cd,
11521152
* @param cd crypt device handle
11531153
* @param keyslot requested keyslot or CRYPT_ANY_SLOT
11541154
* @param volume_key provided volume key or @e NULL if used after crypt_format
1155-
* @param volume_key_size size of volume_key
1155+
* @param volume_key_size size of volume_key in bytes
11561156
* @param passphrase passphrase for new keyslot
11571157
* @param passphrase_size size of passphrase
11581158
*
@@ -1182,7 +1182,7 @@ int crypt_keyslot_add_by_volume_key(struct crypt_device *cd,
11821182
* @param cd crypt device handle
11831183
* @param keyslot requested keyslot or CRYPT_ANY_SLOT
11841184
* @param volume_key provided volume key or @e NULL (see note below)
1185-
* @param volume_key_size size of volume_key
1185+
* @param volume_key_size size of volume_key in bytes
11861186
* @param passphrase passphrase for new keyslot
11871187
* @param passphrase_size size of passphrase
11881188
* @param flags key flags to set
@@ -1289,7 +1289,7 @@ int crypt_keyslot_context_init_by_token(struct crypt_device *cd,
12891289
*
12901290
* @param volume_key provided volume key or @e NULL if used after crypt_format
12911291
* or with CRYPT_VOLUME_KEY_NO_SEGMENT flag
1292-
* @param volume_key_size size of volume_key
1292+
* @param volume_key_size size of volume_key in bytes
12931293
* @param kc returns crypt keyslot context handle type CRYPT_KC_TYPE_KEY
12941294
*
12951295
* @return zero on success or negative errno otherwise.
@@ -1305,9 +1305,9 @@ int crypt_keyslot_context_init_by_volume_key(struct crypt_device *cd,
13051305
* @param cd crypt device handle initialized to device context
13061306
*
13071307
* @param volume_key provided volume key
1308-
* @param volume_key_size size of volume_key
1308+
* @param volume_key_size size of volume_key in bytes
13091309
* @param signature buffer with signature for the key
1310-
* @param signature_size bsize of signature buffer
1310+
* @param signature_size size of signature buffer
13111311
* @param kc returns crypt keyslot context handle type CRYPT_KC_TYPE_SIGNED_KEY
13121312
*
13131313
* @return zero on success or negative errno otherwise.
@@ -1753,7 +1753,7 @@ int crypt_activate_by_keyfile(struct crypt_device *cd,
17531753
* @param cd crypt device handle
17541754
* @param name name of device to create, if @e NULL only check volume key
17551755
* @param volume_key provided volume key (or @e NULL to use internal)
1756-
* @param volume_key_size size of volume_key
1756+
* @param volume_key_size size of volume_key in bytes
17571757
* @param flags activation flags
17581758
*
17591759
* @return @e 0 on success or negative errno value otherwise.
@@ -1782,9 +1782,9 @@ int crypt_activate_by_volume_key(struct crypt_device *cd,
17821782
* @param cd crypt device handle
17831783
* @param name name of device to create
17841784
* @param volume_key provided volume key
1785-
* @param volume_key_size size of volume_key
1785+
* @param volume_key_size size of volume_key in bytes
17861786
* @param signature buffer with signature for the key
1787-
* @param signature_size bsize of signature buffer
1787+
* @param signature_size size of signature buffer
17881788
* @param flags activation flags
17891789
*
17901790
* @return @e 0 on success or negative errno value otherwise.
@@ -1865,7 +1865,7 @@ int crypt_deactivate(struct crypt_device *cd, const char *name);
18651865
* @param keyslot use this keyslot or @e CRYPT_ANY_SLOT
18661866
* @param volume_key buffer for volume key
18671867
* @param volume_key_size on input, size of buffer @e volume_key,
1868-
* on output size of @e volume_key
1868+
* on output size of @e volume_key in bytes
18691869
* @param passphrase passphrase used to unlock volume key
18701870
* @param passphrase_size size of @e passphrase
18711871
*
@@ -1892,7 +1892,7 @@ int crypt_volume_key_get(struct crypt_device *cd,
18921892
* @param keyslot use this keyslot or @e CRYPT_ANY_SLOT
18931893
* @param volume_key buffer for volume key
18941894
* @param volume_key_size on input, size of buffer @e volume_key,
1895-
* on output size of @e volume_key
1895+
* on output size of @e volume_key in bytes
18961896
* @param kc keyslot context used to unlock volume key
18971897
*
18981898
* @return unlocked key slot number or negative errno otherwise.
@@ -1925,7 +1925,7 @@ int crypt_volume_key_get_by_keyslot_context(struct crypt_device *cd,
19251925
*
19261926
* @param cd crypt device handle
19271927
* @param volume_key provided volume key
1928-
* @param volume_key_size size of @e volume_key
1928+
* @param volume_key_size size of @e volume_key in bytes
19291929
*
19301930
* @return @e 0 on success or negative errno value otherwise.
19311931
*
@@ -2184,7 +2184,7 @@ int crypt_benchmark(struct crypt_device *cd,
21842184
* @param password_size size of password
21852185
* @param salt salt for benchmark
21862186
* @param salt_size size of salt
2187-
* @param volume_key_size output volume key size
2187+
* @param volume_key_size output volume key size in bytes
21882188
* @param progress callback function
21892189
* @param usrptr provided identification in callback
21902190
*
@@ -2421,8 +2421,8 @@ void crypt_set_debug_level(int level);
24212421
* @param cd crypt device handle
24222422
* @param keyfile keyfile to read
24232423
* @param key buffer for key
2424-
* @param key_size_read size of read key
2425-
* @param keyfile_offset key offset in keyfile
2424+
* @param key_size_read size of read key in bytes
2425+
* @param keyfile_offset key offset in bytes in keyfile
24262426
* @param key_size exact key length to read from file or 0
24272427
* @param flags keyfile read flags
24282428
*

0 commit comments

Comments
 (0)