20#ifndef __STDC_LIMIT_MACROS
21# define __STDC_LIMIT_MACROS
23#ifndef __STDC_CONSTANT_MACROS
24# define __STDC_CONSTANT_MACROS
29OF_ASSUME_NONNULL_BEGIN
void OFPBKDF2(OFPBKDF2Parameters parameters)
Derives a key from a password and a salt using PBKDF2.
Definition OFPBKDF2.m:33
A class which provides methods to calculate an HMAC.
Definition OFHMAC.h:32
The parameters for OFPBKDF2.
Definition OFPBKDF2.h:38
size_t passwordLength
The length of the password.
Definition OFPBKDF2.h:50
size_t saltLength
The length of the salt.
Definition OFPBKDF2.h:46
unsigned char * key
The buffer to write the key to.
Definition OFPBKDF2.h:52
bool allowsSwappableMemory
Whether data may be stored in swappable memory.
Definition OFPBKDF2.h:60
size_t keyLength
The desired length for the derived key.
Definition OFPBKDF2.h:58
size_t iterations
The number of iterations to perform.
Definition OFPBKDF2.h:42
__unsafe_unretained OFHMAC * HMAC
The HMAC to use to derive a key.
Definition OFPBKDF2.h:40
const char * password
The password to derive a key from.
Definition OFPBKDF2.h:48
const unsigned char * salt
The salt to derive a key with.
Definition OFPBKDF2.h:44