ObjFW
Loading...
Searching...
No Matches
OFPBKDF2Parameters Struct Reference

The parameters for OFPBKDF2. More...

#include <OFPBKDF2.h>

Public Attributes

__unsafe_unretained OFHMACHMAC
 The HMAC to use to derive a key.
 
size_t iterations
 The number of iterations to perform.
 
const unsigned char * salt
 The salt to derive a key with.
 
size_t saltLength
 The length of the salt.
 
const char * password
 The password to derive a key from.
 
size_t passwordLength
 The length of the password.
 
unsigned char * key
 The buffer to write the key to.
 
size_t keyLength
 The desired length for the derived key.
 
bool allowsSwappableMemory
 Whether data may be stored in swappable memory.
 

Detailed Description

The parameters for OFPBKDF2.

Member Data Documentation

◆ keyLength

size_t OFPBKDF2Parameters::keyLength

The desired length for the derived key.

key needs to have enough storage.


The documentation for this struct was generated from the following file: