KCAPI_PBKDF_ITERATIO(3) | Programming Interface | KCAPI_PBKDF_ITERATIO(3) |
kcapi_pbkdf_iteration_count - Calculate numbers of iterations for a PBKDF
uint32_t kcapi_pbkdf_iteration_count(const char * hashname, uint64_t timeshresh);
hashname
timeshresh
The function measures the time the PBKDF operation takes for different round counts for the given keyed message digest type.
The result should be taken as the iteration count for a PBKDF operation.
If an error occurs with the PBKDF calculation, a value of 1<<18 is returned.
return number of iterations a PBKDF should take on this computer.
Stephan Mueller <smueller@chronox.de>
February 2022 | libkcapi Manual 1.4.0 |