Add crypt_get_pbkdf_default() function to get per-type PBKDF default.

This commit is contained in:
Milan Broz
2018-04-16 15:26:43 +02:00
parent 09842ce46f
commit f8a7ab1752
5 changed files with 49 additions and 4 deletions

View File

@@ -247,7 +247,18 @@ int crypt_set_pbkdf_type(struct crypt_device *cd,
const struct crypt_pbkdf_type *pbkdf);
/**
* Get current default PBKDF (Password-Based Key Derivation Algorithm) for keyslots.
* Get default PBKDF (Password-Based Key Derivation Algorithm) settings for keyslots.
* Works only with LUKS device handles (both versions).
*
* @param type type of device (see @link crypt-type @endlink)
*
* @return struct on success or NULL value otherwise.
*
*/
const struct crypt_pbkdf_type *crypt_get_pbkdf_default(const char *type);
/**
* Get current PBKDF (Password-Based Key Derivation Algorithm) settings for keyslots.
* Works only with LUKS device handles (both versions).
*
* @param cd crypt device handle