aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_rsa.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-17 21:12:09 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-17 21:12:09 +0000
commitbed39036b47e1b820ee40d645f743e18520c4f8c (patch)
tree6218facf7c12448327e82780896a609ac000e128 /src/util/crypto_rsa.c
parenta6d3a7a355634ef0396f009f9286962cdc4c6077 (diff)
downloadgnunet-bed39036b47e1b820ee40d645f743e18520c4f8c.tar.gz
gnunet-bed39036b47e1b820ee40d645f743e18520c4f8c.zip
fixes
Diffstat (limited to 'src/util/crypto_rsa.c')
-rw-r--r--src/util/crypto_rsa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c
index 2c4daee18..582006530 100644
--- a/src/util/crypto_rsa.c
+++ b/src/util/crypto_rsa.c
@@ -779,6 +779,8 @@ GNUNET_CRYPTO_rsa_encrypt (const void *block,
779 779
780 GNUNET_assert (size <= sizeof (GNUNET_HashCode)); 780 GNUNET_assert (size <= sizeof (GNUNET_HashCode));
781 pubkey = public2PrivateKey (publicKey); 781 pubkey = public2PrivateKey (publicKey);
782 if (pubkey == NULL)
783 return GNUNET_SYSERR;
782 isize = size; 784 isize = size;
783 GNUNET_assert (0 == 785 GNUNET_assert (0 ==
784 gcry_mpi_scan (&val, GCRYMPI_FMT_USG, block, isize, &isize)); 786 gcry_mpi_scan (&val, GCRYMPI_FMT_USG, block, isize, &isize));