kcapi_pbkdf_iteration_count(3)

kcapi_pbkdf_iteration_count3

Calculate numbers of iterations for a pbkdf

Usage

uint32_t kcapi_pbkdf_iteration_count(const char * hashname, uint64_t timeshresh);

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.

Overview

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.

Releases

3 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13

Author

Stephan Mueller <[email protected]>

Author.

From libkcapi-dev 1.4.0-1+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.