@@ -27,13 +27,13 @@ /** @file */ @class OFHMAC; /** - * @brief The parameters for @ref of_pbkdf2. + * @brief The parameters for @ref OFPBKDF2. */ -typedef struct of_pbkdf2_parameters_t { +typedef struct { /** @brief The HMAC to use to derive a key. */ __unsafe_unretained OFHMAC *HMAC; /** @brief The number of iterations to perform. */ size_t iterations; /** @brief The salt to derive a key with. */ @@ -52,11 +52,11 @@ * @ref key needs to have enough storage. */ size_t keyLength; /** @brief Whether data may be stored in swappable memory. */ bool allowsSwappableMemory; -} of_pbkdf2_parameters_t; +} OFPBKDF2Parameters; #ifdef __cplusplus extern "C" { #endif /** @@ -64,13 +64,13 @@ * * @note This will call @ref OFHMAC::reset on the `HMAC` first, making it * possible to reuse the `HMAC`, but also meaning all previous results * from the `HMAC` get invalidated if they have not been copied. * - * @param param The parameters to use + * @param parameters The parameters to use */ -extern void of_pbkdf2(of_pbkdf2_parameters_t param); +extern void OFPBKDF2(OFPBKDF2Parameters parameters); #ifdef __cplusplus } #endif OF_ASSUME_NONNULL_END