diff options
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index bd95ad3c3..32503eaf8 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -27,6 +27,7 @@ | |||
27 | * @author Gerd Knorr <kraxel@bytesex.org> | 27 | * @author Gerd Knorr <kraxel@bytesex.org> |
28 | * @author Ioana Patrascu | 28 | * @author Ioana Patrascu |
29 | * @author Tzvetan Horozov | 29 | * @author Tzvetan Horozov |
30 | * @author Jeffrey Burdges <burdges@gnunet.org> | ||
30 | * | 31 | * |
31 | * @defgroup crypto Crypto library: cryptographic operations | 32 | * @defgroup crypto Crypto library: cryptographic operations |
32 | * Provides cryptographic primitives. | 33 | * Provides cryptographic primitives. |
@@ -1015,6 +1016,26 @@ GNUNET_CRYPTO_kdf_v (void *result, | |||
1015 | 1016 | ||
1016 | 1017 | ||
1017 | /** | 1018 | /** |
1019 | * Deterministically generate a pseudo-random number uniformly from the | ||
1020 | * integers modulo a libgcrypt mpi. | ||
1021 | * | ||
1022 | * @param[out] r MPI value set to the FDH | ||
1023 | * @param n MPI to work modulo | ||
1024 | * @param xts salt | ||
1025 | * @param xts_len length of @a xts | ||
1026 | * @param skm source key material | ||
1027 | * @param skm_len length of @a skm | ||
1028 | * @param ctx context string | ||
1029 | */ | ||
1030 | void | ||
1031 | GNUNET_CRYPTO_kdf_mod_mpi (gcry_mpi_t *r, | ||
1032 | gcry_mpi_t n, | ||
1033 | const void *xts, size_t xts_len, | ||
1034 | const void *skm, size_t skm_len, | ||
1035 | const char *ctx); | ||
1036 | |||
1037 | |||
1038 | /** | ||
1018 | * @ingroup hash | 1039 | * @ingroup hash |
1019 | * @brief Derive key | 1040 | * @brief Derive key |
1020 | * @param result buffer for the derived key, allocated by caller | 1041 | * @param result buffer for the derived key, allocated by caller |