aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_rsa.c
diff options
context:
space:
mode:
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