aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/gnunet-crypto-tvg.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/util/gnunet-crypto-tvg.c b/src/util/gnunet-crypto-tvg.c
index 7d151c10b..a09a6ff50 100644
--- a/src/util/gnunet-crypto-tvg.c
+++ b/src/util/gnunet-crypto-tvg.c
@@ -200,13 +200,13 @@ run (void *cls,
200 struct GNUNET_CRYPTO_RsaBlindingKeySecret bks; 200 struct GNUNET_CRYPTO_RsaBlindingKeySecret bks;
201 struct GNUNET_CRYPTO_RsaSignature *blinded_sig; 201 struct GNUNET_CRYPTO_RsaSignature *blinded_sig;
202 struct GNUNET_CRYPTO_RsaSignature *sig; 202 struct GNUNET_CRYPTO_RsaSignature *sig;
203 char *blinded_data; 203 void *blinded_data;
204 size_t blinded_len; 204 size_t blinded_len;
205 char *public_enc_data; 205 void *public_enc_data;
206 size_t public_enc_len; 206 size_t public_enc_len;
207 char *blinded_sig_enc_data; 207 void *blinded_sig_enc_data;
208 size_t blinded_sig_enc_length; 208 size_t blinded_sig_enc_length;
209 char *sig_enc_data; 209 void *sig_enc_data;
210 size_t sig_enc_length; 210 size_t sig_enc_length;
211 skey = GNUNET_CRYPTO_rsa_private_key_create (2048); 211 skey = GNUNET_CRYPTO_rsa_private_key_create (2048);
212 pkey = GNUNET_CRYPTO_rsa_private_key_get_public (skey); 212 pkey = GNUNET_CRYPTO_rsa_private_key_get_public (skey);
@@ -214,8 +214,10 @@ run (void *cls,
214 sizeof (struct GNUNET_HashCode)); 214 sizeof (struct GNUNET_HashCode));
215 GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK, &bks, sizeof (struct 215 GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK, &bks, sizeof (struct
216 GNUNET_CRYPTO_RsaBlindingKeySecret)); 216 GNUNET_CRYPTO_RsaBlindingKeySecret));
217 GNUNET_assert (GNUNET_YES == GNUNET_CRYPTO_rsa_blind (&message_hash, &bks, 217 GNUNET_assert (GNUNET_YES == GNUNET_CRYPTO_rsa_blind (&message_hash,
218 pkey, &blinded_data, 218 &bks,
219 pkey,
220 &blinded_data,
219 &blinded_len)); 221 &blinded_len));
220 blinded_sig = GNUNET_CRYPTO_rsa_sign_blinded (skey, blinded_data, 222 blinded_sig = GNUNET_CRYPTO_rsa_sign_blinded (skey, blinded_data,
221 blinded_len); 223 blinded_len);
@@ -275,4 +277,5 @@ main (int argc,
275 return 0; 277 return 0;
276} 278}
277 279
280
278/* end of gnunet-crypto-tvg.c */ 281/* end of gnunet-crypto-tvg.c */