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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c
index 0106f43be..bbd73083d 100644
--- a/src/util/crypto_rsa.c
+++ b/src/util/crypto_rsa.c
@@ -838,7 +838,7 @@ GNUNET_CRYPTO_rsa_encrypt (const void *block, size_t size,
838 size_t isize; 838 size_t isize;
839 size_t erroff; 839 size_t erroff;
840 840
841 GNUNET_assert (size <= sizeof (GNUNET_HashCode)); 841 GNUNET_assert (size <= sizeof (struct GNUNET_HashCode));
842 pubkey = public2PrivateKey (publicKey); 842 pubkey = public2PrivateKey (publicKey);
843 if (pubkey == NULL) 843 if (pubkey == NULL)
844 return GNUNET_SYSERR; 844 return GNUNET_SYSERR;
@@ -936,7 +936,7 @@ GNUNET_CRYPTO_rsa_sign (const struct GNUNET_CRYPTO_RsaPrivateKey *key,
936 gcry_sexp_t data; 936 gcry_sexp_t data;
937 size_t ssize; 937 size_t ssize;
938 gcry_mpi_t rval; 938 gcry_mpi_t rval;
939 GNUNET_HashCode hc; 939 struct GNUNET_HashCode hc;
940 char *buff; 940 char *buff;
941 int bufSize; 941 int bufSize;
942 942
@@ -949,7 +949,7 @@ GNUNET_CRYPTO_rsa_sign (const struct GNUNET_CRYPTO_RsaPrivateKey *key,
949 [bufSize - 949 [bufSize -
950 strlen 950 strlen
951 ("0123456789012345678901234567890123456789012345678901234567890123))") 951 ("0123456789012345678901234567890123456789012345678901234567890123))")
952 - 1], &hc, sizeof (GNUNET_HashCode)); 952 - 1], &hc, sizeof (struct GNUNET_HashCode));
953 GNUNET_assert (0 == gcry_sexp_new (&data, buff, bufSize, 0)); 953 GNUNET_assert (0 == gcry_sexp_new (&data, buff, bufSize, 0));
954 GNUNET_free (buff); 954 GNUNET_free (buff);
955 GNUNET_assert (0 == gcry_pk_sign (&result, data, key->sexp)); 955 GNUNET_assert (0 == gcry_pk_sign (&result, data, key->sexp));
@@ -988,7 +988,7 @@ GNUNET_CRYPTO_rsa_verify (uint32_t purpose,
988 size_t size; 988 size_t size;
989 gcry_mpi_t val; 989 gcry_mpi_t val;
990 struct GNUNET_CRYPTO_RsaPrivateKey *hostkey; 990 struct GNUNET_CRYPTO_RsaPrivateKey *hostkey;
991 GNUNET_HashCode hc; 991 struct GNUNET_HashCode hc;
992 char *buff; 992 char *buff;
993 int bufSize; 993 int bufSize;
994 size_t erroff; 994 size_t erroff;
@@ -1012,7 +1012,7 @@ GNUNET_CRYPTO_rsa_verify (uint32_t purpose,
1012 [strlen (FORMATSTRING) - 1012 [strlen (FORMATSTRING) -
1013 strlen 1013 strlen
1014 ("0123456789012345678901234567890123456789012345678901234567890123))")], 1014 ("0123456789012345678901234567890123456789012345678901234567890123))")],
1015 &hc, sizeof (GNUNET_HashCode)); 1015 &hc, sizeof (struct GNUNET_HashCode));
1016 GNUNET_assert (0 == gcry_sexp_new (&data, buff, bufSize, 0)); 1016 GNUNET_assert (0 == gcry_sexp_new (&data, buff, bufSize, 0));
1017 GNUNET_free (buff); 1017 GNUNET_free (buff);
1018 hostkey = public2PrivateKey (publicKey); 1018 hostkey = public2PrivateKey (publicKey);