mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +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:
@@ -67,7 +67,8 @@ int crypt_pbkdf_perf(const char *kdf, const char *hash,
|
||||
const char *salt, size_t salt_size,
|
||||
size_t volume_key_size, uint32_t time_ms,
|
||||
uint32_t max_memory_kb, uint32_t parallel_threads,
|
||||
uint32_t *iterations_out, uint32_t *memory_out);
|
||||
uint32_t *iterations_out, uint32_t *memory_out,
|
||||
int (*progress)(long time_ms, void *usrptr), void *usrptr);
|
||||
|
||||
#if USE_INTERNAL_PBKDF2
|
||||
/* internal PBKDF2 implementation */
|
||||
|
||||
Reference in New Issue
Block a user