aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_rsa.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-04-13 20:26:36 +0000
committerChristian Grothoff <christian@grothoff.org>2015-04-13 20:26:36 +0000
commitdc08cf45466193ee67fbbe97cddee413f0273cff (patch)
treee344595737de9c912cbd5251c9cfe20ea55c0a46 /src/util/crypto_rsa.c
parentb5b42150a32afbe1d1c29b8075312dcccb052fa2 (diff)
downloadgnunet-dc08cf45466193ee67fbbe97cddee413f0273cff.tar.gz
gnunet-dc08cf45466193ee67fbbe97cddee413f0273cff.zip
-doxygen, build system fixes, minor API extension
Diffstat (limited to 'src/util/crypto_rsa.c')
-rw-r--r--src/util/crypto_rsa.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c
index 66082fc9d..47aa798e7 100644
--- a/src/util/crypto_rsa.c
+++ b/src/util/crypto_rsa.c
@@ -406,6 +406,22 @@ GNUNET_CRYPTO_rsa_blinding_key_create (unsigned int len)
406 406
407 407
408/** 408/**
409 * Compare the values of two blinding keys.
410 *
411 * @param b1 one key
412 * @param b2 the other key
413 * @return 0 if the two are equal
414 */
415int
416GNUNET_CRYPTO_rsa_blinding_key_cmp (struct GNUNET_CRYPTO_rsa_BlindingKey *b1,
417 struct GNUNET_CRYPTO_rsa_BlindingKey *b2)
418{
419 return gcry_mpi_cmp (b1->r,
420 b2->r);
421}
422
423
424/**
409 * Destroy a blinding key 425 * Destroy a blinding key
410 * 426 *
411 * @param bkey the blinding key to destroy 427 * @param bkey the blinding key to destroy