2
0

Documentation improvements.

This commit is contained in:
Maarten Billemont 2017-08-10 12:48:04 -04:00
parent c3bb896f40
commit 2033ebdc72
2 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ uint8_t const *mpw_kdf_blake2b(const size_t subkeySize, const uint8_t *key, cons
return NULL; return NULL;
} }
#else #else
#error No crypto support for mpw_scrypt. #error No crypto support for mpw_kdf_blake2b.
#endif #endif
return subkey; return subkey;

View File

@ -144,7 +144,7 @@ bool mpw_free_string(
uint8_t const *mpw_kdf_scrypt( uint8_t const *mpw_kdf_scrypt(
const size_t keySize, const char *secret, const uint8_t *salt, const size_t saltSize, const size_t keySize, const char *secret, const uint8_t *salt, const size_t saltSize,
uint64_t N, uint32_t r, uint32_t p); uint64_t N, uint32_t r, uint32_t p);
/** Derive a subkey from the given key. /** Derive a subkey from the given key using the blake2b KDF.
* @return A new keySize allocated buffer containing the key. */ * @return A new keySize allocated buffer containing the key. */
uint8_t const *mpw_kdf_blake2b( uint8_t const *mpw_kdf_blake2b(
const size_t subkeySize, const uint8_t *key, const size_t keySize, const size_t subkeySize, const uint8_t *key, const size_t keySize,