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
64 extern void of_salsa20_8_core(uint32_t buffer[_Nonnull 16]);
65 extern void of_scrypt_block_mix(uint32_t *output,
const uint32_t *input,
67 extern void of_scrypt_romix(uint32_t *buffer,
size_t blockSize,
68 size_t costFactor, uint32_t *tmp);
A class which provides methods to calculate an HMAC.
Definition: OFHMAC.h:28
struct of_scrypt_parameters_t of_scrypt_parameters_t
The parameters for of_scrypt.
void of_scrypt(of_scrypt_parameters_t param)
Derives a key from a password and a salt using scrypt.
Definition: scrypt.m:141
The parameters for of_scrypt.
Definition: scrypt.h:34
unsigned char * key
The buffer to write the key to.
Definition: scrypt.h:50
size_t passwordLength
The length of the password.
Definition: scrypt.h:48
size_t keyLength
The desired length for the derived key.
Definition: scrypt.h:56
size_t costFactor
The CPU/memory cost factor to use.
Definition: scrypt.h:38
size_t parallelization
The parallelization to use.
Definition: scrypt.h:40
size_t saltLength
The length of the salt.
Definition: scrypt.h:44
size_t blockSize
The block size to use.
Definition: scrypt.h:36
const unsigned char * salt
The salt to derive a key with.
Definition: scrypt.h:42
bool allowsSwappableMemory
Whether data may be stored in swappable memory.
Definition: scrypt.h:58
const char * password
The password to derive a key from.
Definition: scrypt.h:46