diff options
author | Gian Demarmels <gian@demarmels.org> | 2021-12-21 15:27:27 +0100 |
---|---|---|
committer | Gian Demarmels <gian@demarmels.org> | 2021-12-21 21:08:05 +0100 |
commit | ff714cca755a1bb47fe2b15a0710c096ca4d8111 (patch) | |
tree | d70d24729faa63b7640f0863d1a2ab89ff58bf44 /src/include | |
parent | ed65e2cac3e720c226f8dec07ac37ab62578724e (diff) | |
download | gnunet-ff714cca755a1bb47fe2b15a0710c096ca4d8111.tar.gz gnunet-ff714cca755a1bb47fe2b15a0710c096ca4d8111.zip |
changed derive_secrets API
changed derive_secrets API
repaired performance test
uncrustify
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index 9c71edaab..bd318ab84 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -2607,7 +2607,6 @@ void | |||
2607 | GNUNET_CRYPTO_cs_r_get_public (const struct GNUNET_CRYPTO_CsRSecret *r_priv, | 2607 | GNUNET_CRYPTO_cs_r_get_public (const struct GNUNET_CRYPTO_CsRSecret *r_priv, |
2608 | struct GNUNET_CRYPTO_CsRPublic *r_pub); | 2608 | struct GNUNET_CRYPTO_CsRPublic *r_pub); |
2609 | 2609 | ||
2610 | |||
2611 | /** | 2610 | /** |
2612 | * Derives new random blinding factors. | 2611 | * Derives new random blinding factors. |
2613 | * In original papers blinding factors are generated randomly | 2612 | * In original papers blinding factors are generated randomly |
@@ -2615,13 +2614,12 @@ GNUNET_CRYPTO_cs_r_get_public (const struct GNUNET_CRYPTO_CsRSecret *r_priv, | |||
2615 | * To ensure unpredictability a new nonce has to be used. | 2614 | * To ensure unpredictability a new nonce has to be used. |
2616 | * Uses HKDF internally | 2615 | * Uses HKDF internally |
2617 | * | 2616 | * |
2618 | * @param secret is secret to derive blinding factors | 2617 | * @param blind_seed is the blinding seed to derive blinding factors |
2619 | * @param secret_len secret length | ||
2620 | * @param[out] bs array containing the two derived blinding secrets | 2618 | * @param[out] bs array containing the two derived blinding secrets |
2621 | */ | 2619 | */ |
2622 | void | 2620 | void |
2623 | GNUNET_CRYPTO_cs_blinding_secrets_derive (const void *secret, | 2621 | GNUNET_CRYPTO_cs_blinding_secrets_derive (const struct |
2624 | size_t secret_len, | 2622 | GNUNET_CRYPTO_CsNonce *blind_seed, |
2625 | struct GNUNET_CRYPTO_CsBlindingSecret | 2623 | struct GNUNET_CRYPTO_CsBlindingSecret |
2626 | bs[2]); | 2624 | bs[2]); |
2627 | 2625 | ||