mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 19:00:02 +01:00
Add callback for PBKDF benchmark.
Also change API so the kdf structure is continuously updated with the benchmarked data (callback can see progress or debug).
This commit is contained in:
@@ -1110,14 +1110,14 @@ int crypt_benchmark(struct crypt_device *cd,
|
||||
* @return @e 0 on success or negative errno value otherwise.
|
||||
*/
|
||||
int crypt_benchmark_pbkdf(struct crypt_device *cd,
|
||||
const struct crypt_pbkdf_type *pbkdf,
|
||||
struct crypt_pbkdf_type *pbkdf,
|
||||
const char *password,
|
||||
size_t password_size,
|
||||
const char *salt,
|
||||
size_t salt_size,
|
||||
size_t volume_key_size,
|
||||
uint32_t *iterations,
|
||||
uint32_t *memory);
|
||||
int (*progress)(long time_ms, void *usrptr),
|
||||
void *usrptr);
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user