logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

kcapi_pbkdf_iteration_count - Calculate numbers of iterations for a PBKDF

Arguments

hashname
           [in] kernel crypto API name of a keyed hash (e.g. hmac(sha1))

       timeshresh
           [in] Time duration in nanoseconds that the PBKDF operation shall at least require. If that value is
           0, a default of (1<<27) nanoseconds is used.

Author

StephanMueller <smueller@chronox.de>
           Author.

Description

       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.

Name

       kcapi_pbkdf_iteration_count - Calculate numbers of iterations for a PBKDF

Synopsis

uint32_tkcapi_pbkdf_iteration_count(constchar*hashname,uint64_ttimeshresh);

See Also