diff options
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index 8a8e71a96..126c599b9 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -527,6 +527,8 @@ int GNUNET_CRYPTO_hash_xorcmp (const GNUNET_HashCode * h1, | |||
527 | 527 | ||
528 | /** | 528 | /** |
529 | * @brief Derive key | 529 | * @brief Derive key |
530 | * @param result buffer for the derived key, allocated by caller | ||
531 | * @param out_len desired length of the derived key | ||
530 | * @param xtr_algo hash algorithm for the extraction phase, GCRY_MD_... | 532 | * @param xtr_algo hash algorithm for the extraction phase, GCRY_MD_... |
531 | * @param prf_algo hash algorithm for the expansion phase, GCRY_MD_... | 533 | * @param prf_algo hash algorithm for the expansion phase, GCRY_MD_... |
532 | * @param xts salt | 534 | * @param xts salt |
@@ -535,15 +537,12 @@ int GNUNET_CRYPTO_hash_xorcmp (const GNUNET_HashCode * h1, | |||
535 | * @param skm_len length of skm | 537 | * @param skm_len length of skm |
536 | * @param ctx context info | 538 | * @param ctx context info |
537 | * @param ctx_len length of ctx | 539 | * @param ctx_len length of ctx |
538 | * @param out_len desired length of the derived key | ||
539 | * @param result buffer for the derived key, allocated by caller | ||
540 | * @return GNUNET_YES on success | 540 | * @return GNUNET_YES on success |
541 | */ | 541 | */ |
542 | int | 542 | int |
543 | GNUNET_CRYPTO_hkdf (int xtr_algo, int prf_algo, const void *xts, | 543 | GNUNET_CRYPTO_hkdf (void *result, const unsigned long long out_len, |
544 | const size_t xts_len, const void *skm, const size_t skm_len, | 544 | int xtr_algo, int prf_algo, const void *xts, const size_t xts_len, |
545 | const void *ctx, const size_t ctx_len, const unsigned long long out_len, | 545 | const void *skm, const size_t skm_len, ...); |
546 | void *result); | ||
547 | 546 | ||
548 | 547 | ||
549 | /** | 548 | /** |