20 #ifndef __STDC_LIMIT_MACROS 21 # define __STDC_LIMIT_MACROS 23 #ifndef __STDC_CONSTANT_MACROS 24 # define __STDC_CONSTANT_MACROS 29 OF_ASSUME_NONNULL_BEGIN
69 extern void _OFSalsa20_8Core(uint32_t buffer[_Nonnull 16]);
70 extern void _OFScryptBlockMix(uint32_t *output,
const uint32_t *input,
72 extern void _OFScryptROMix(uint32_t *buffer,
size_t blockSize,
73 size_t costFactor, uint32_t *tmp);
const unsigned char * salt
The salt to derive a key with.
Definition: OFScrypt.h:46
A class which provides methods to calculate an HMAC.
Definition: OFHMAC.h:31
size_t passwordLength
The length of the password.
Definition: OFScrypt.h:52
size_t keyLength
The desired length for the derived key.
Definition: OFScrypt.h:60
size_t parallelization
The parallelization to use.
Definition: OFScrypt.h:44
unsigned char * key
The buffer to write the key to.
Definition: OFScrypt.h:54
size_t saltLength
The length of the salt.
Definition: OFScrypt.h:48
size_t blockSize
The block size to use.
Definition: OFScrypt.h:40
The parameters for OFScrypt.
Definition: OFScrypt.h:38
bool allowsSwappableMemory
Whether data may be stored in swappable memory.
Definition: OFScrypt.h:62
size_t costFactor
The CPU/memory cost factor to use.
Definition: OFScrypt.h:42
const char * password
The password to derive a key from.
Definition: OFScrypt.h:50
void OFScrypt(OFScryptParameters parameters)
Derives a key from a password and a salt using scrypt.
Definition: OFScrypt.m:145