@@ -27,13 +27,13 @@ /** @file */ @class OFHMAC; /** - * @brief The parameters for @ref of_scrypt. + * @brief The parameters for @ref OFScrypt. */ -typedef struct of_scrypt_parameters_t { +typedef struct { /** @brief The block size to use. */ size_t blockSize; /** @brief The CPU/memory cost factor to use. */ size_t costFactor; /** @brief The parallelization to use. */ @@ -54,27 +54,27 @@ * @ref key needs to have enough storage. */ size_t keyLength; /** @brief Whether data may be stored in swappable memory. */ bool allowsSwappableMemory; -} of_scrypt_parameters_t; +} OFScryptParameters; #ifdef __cplusplus extern "C" { #endif -extern void of_salsa20_8_core(uint32_t buffer[_Nonnull 16]); -extern void of_scrypt_block_mix(uint32_t *output, const uint32_t *input, +extern void OFSalsa20_8Core(uint32_t buffer[_Nonnull 16]); +extern void OFScryptBlockMix(uint32_t *output, const uint32_t *input, size_t blockSize); -extern void of_scrypt_romix(uint32_t *buffer, size_t blockSize, +extern void OFScryptROMix(uint32_t *buffer, size_t blockSize, size_t costFactor, uint32_t *tmp); /** * @brief Derives a key from a password and a salt using scrypt. * - * @param param The parameters to use + * @param parameters The parameters to use */ -extern void of_scrypt(of_scrypt_parameters_t param); +extern void OFScrypt(OFScryptParameters parameters); #ifdef __cplusplus } #endif OF_ASSUME_NONNULL_END