aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
authorNils Durner <durner@gnunet.org>2010-09-26 14:11:23 +0000
committerNils Durner <durner@gnunet.org>2010-09-26 14:11:23 +0000
commitaa51482a950a56419580587df54c17603d0390f1 (patch)
tree437974f0cc39a7919dd84b3081cdb8c70f6d0ebe /src/include/gnunet_crypto_lib.h
parentda6e4e260bdf7eb4440a9ba53bcc7e497d66181f (diff)
downloadgnunet-aa51482a950a56419580587df54c17603d0390f1.tar.gz
gnunet-aa51482a950a56419580587df54c17603d0390f1.zip
support chunked context parameter for HKDF
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r--src/include/gnunet_crypto_lib.h11
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 */
542int 542int
543GNUNET_CRYPTO_hkdf (int xtr_algo, int prf_algo, const void *xts, 543GNUNET_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/**