61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
/** @brief Whether data may be stored in swappable memory. */
bool allowsSwappableMemory;
} OFScryptParameters;
#ifdef __cplusplus
extern "C" {
#endif
extern void OFSalsa20_8Core(uint32_t buffer[_Nonnull 16]);
extern void OFScryptBlockMix(uint32_t *output, const uint32_t *input,
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 parameters The parameters to use
*/
extern void OFScrypt(OFScryptParameters parameters);
#ifdef __cplusplus
}
#endif
OF_ASSUME_NONNULL_END
|
>
|
|
|
|
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
/** @brief Whether data may be stored in swappable memory. */
bool allowsSwappableMemory;
} OFScryptParameters;
#ifdef __cplusplus
extern "C" {
#endif
/* No OF_VISIBILITY_HIDDEN so tests can call it. */
extern void _OFSalsa20_8Core(uint32_t buffer[_Nonnull 16]);
extern void _OFScryptBlockMix(uint32_t *output, const uint32_t *input,
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 parameters The parameters to use
*/
extern void OFScrypt(OFScryptParameters parameters);
#ifdef __cplusplus
}
#endif
OF_ASSUME_NONNULL_END
|