16 #ifndef __STDC_LIMIT_MACROS
17 # define __STDC_LIMIT_MACROS
19 #ifndef __STDC_CONSTANT_MACROS
20 # define __STDC_CONSTANT_MACROS
25 OF_ASSUME_NONNULL_BEGIN
A class which provides methods to calculate an HMAC.
Definition: OFHMAC.h:28
struct of_pbkdf2_parameters_t of_pbkdf2_parameters_t
The parameters for of_pbkdf2.
void of_pbkdf2(of_pbkdf2_parameters_t param)
Derives a key from a password and a salt using PBKDF2.
Definition: pbkdf2.m:30
The parameters for of_pbkdf2.
Definition: pbkdf2.h:34
unsigned char * key
The buffer to write the key to.
Definition: pbkdf2.h:48
size_t keyLength
The desired length for the derived key.
Definition: pbkdf2.h:54
const char * password
The password to derive a key from.
Definition: pbkdf2.h:44
size_t iterations
The number of iterations to perform.
Definition: pbkdf2.h:38
size_t saltLength
The length of the salt.
Definition: pbkdf2.h:42
size_t passwordLength
The length of the password.
Definition: pbkdf2.h:46
__unsafe_unretained OFHMAC * HMAC
The HMAC to use to derive a key.
Definition: pbkdf2.h:36
const unsigned char * salt
The salt to derive a key with.
Definition: pbkdf2.h:40
bool allowsSwappableMemory
Whether data may be stored in swappable memory.
Definition: pbkdf2.h:56