diff options
author | Jeff Burdges <burdges@gnunet.org> | 2016-03-21 14:29:11 +0000 |
---|---|---|
committer | Jeff Burdges <burdges@gnunet.org> | 2016-03-21 14:29:11 +0000 |
commit | ac6fdcd25f70f3c1758baf333ad5c583fce57151 (patch) | |
tree | 73b5022e4ccaae27b57d1ca453ae8fe5f2e2241f | |
parent | 738c3460da2d3e420d965564c34a2d941e5085c7 (diff) | |
download | gnunet-ac6fdcd25f70f3c1758baf333ad5c583fce57151.tar.gz gnunet-ac6fdcd25f70f3c1758baf333ad5c583fce57151.zip |
Clarify a few paramaters and names
-rw-r--r-- | src/util/crypto_rsa.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c index f36d130f8..d57a5ae35 100644 --- a/src/util/crypto_rsa.c +++ b/src/util/crypto_rsa.c | |||
@@ -569,11 +569,11 @@ GNUNET_CRYPTO_rsa_blinding_key_free (struct GNUNET_CRYPTO_rsa_BlindingKey *bkey) | |||
569 | * Print an MPI to a newly created buffer | 569 | * Print an MPI to a newly created buffer |
570 | * | 570 | * |
571 | * @param v MPI to print. | 571 | * @param v MPI to print. |
572 | * @param[out] buffer set to a buffer with the result | 572 | * @param[out] newly allocated buffer containing the result |
573 | * @return number of bytes stored in @a buffer | 573 | * @return number of bytes stored in @a buffer |
574 | */ | 574 | */ |
575 | static size_t | 575 | static size_t |
576 | mpi_print (gcry_mpi_t v, | 576 | numeric_mpi_alloc_n_print (gcry_mpi_t v, |
577 | char **buffer) | 577 | char **buffer) |
578 | { | 578 | { |
579 | size_t n; | 579 | size_t n; |
@@ -609,7 +609,7 @@ size_t | |||
609 | GNUNET_CRYPTO_rsa_blinding_key_encode (const struct GNUNET_CRYPTO_rsa_BlindingKey *bkey, | 609 | GNUNET_CRYPTO_rsa_blinding_key_encode (const struct GNUNET_CRYPTO_rsa_BlindingKey *bkey, |
610 | char **buffer) | 610 | char **buffer) |
611 | { | 611 | { |
612 | return mpi_print (bkey->r, buffer); | 612 | return numeric_mpi_alloc_n_print (bkey->r, buffer); |
613 | } | 613 | } |
614 | 614 | ||
615 | 615 | ||
@@ -654,7 +654,7 @@ GNUNET_CRYPTO_rsa_blinding_key_decode (const char *buf, | |||
654 | * @param[out] r MPI value set to the FDH | 654 | * @param[out] r MPI value set to the FDH |
655 | * @param hash initial hash of the message to sign | 655 | * @param hash initial hash of the message to sign |
656 | * @param pkey the public key of the signer | 656 | * @param pkey the public key of the signer |
657 | * @param rsize FIXME JEFF | 657 | * @param rsize If not NULL, the number of bytes actually stored in buffer |
658 | * @return libgcrypt error that to represent an allocation failure | 658 | * @return libgcrypt error that to represent an allocation failure |
659 | */ | 659 | */ |
660 | gcry_error_t | 660 | gcry_error_t |
@@ -800,7 +800,7 @@ GNUNET_CRYPTO_rsa_blind (const struct GNUNET_HashCode *hash, | |||
800 | gcry_mpi_release (ne[1]); | 800 | gcry_mpi_release (ne[1]); |
801 | gcry_mpi_release (r_e); | 801 | gcry_mpi_release (r_e); |
802 | 802 | ||
803 | n = mpi_print (data_r_e, buffer); | 803 | n = numeric_mpi_alloc_n_print (data_r_e, buffer); |
804 | gcry_mpi_release (data_r_e); | 804 | gcry_mpi_release (data_r_e); |
805 | return n; | 805 | return n; |
806 | } | 806 | } |