aboutsummaryrefslogtreecommitdiff
path: root/src/nse
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-03-05 10:13:58 +0000
committerChristian Grothoff <christian@grothoff.org>2013-03-05 10:13:58 +0000
commitad6e95164e90e91911afec9161edbb7051946604 (patch)
tree88adf876ae87e7cff763d1846a61a77096493741 /src/nse
parentd23cafc51987bbe3639cafdadbab4c3dab5fea78 (diff)
downloadgnunet-ad6e95164e90e91911afec9161edbb7051946604.tar.gz
gnunet-ad6e95164e90e91911afec9161edbb7051946604.zip
-rsa, not ecc
Diffstat (limited to 'src/nse')
-rw-r--r--src/nse/gnunet-service-nse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c
index b0ed18733..4d8032163 100644
--- a/src/nse/gnunet-service-nse.c
+++ b/src/nse/gnunet-service-nse.c
@@ -686,7 +686,7 @@ setup_flood_message (unsigned int slot,
686 fm->purpose.size = 686 fm->purpose.size =
687 htonl (sizeof (struct GNUNET_NSE_FloodMessage) - 687 htonl (sizeof (struct GNUNET_NSE_FloodMessage) -
688 sizeof (struct GNUNET_MessageHeader) - sizeof (uint32_t) - 688 sizeof (struct GNUNET_MessageHeader) - sizeof (uint32_t) -
689 sizeof (struct GNUNET_CRYPTO_RsaSignature)); 689 sizeof (struct GNUNET_CRYPTO_EccSignature));
690 fm->matching_bits = htonl (matching_bits); 690 fm->matching_bits = htonl (matching_bits);
691 fm->timestamp = GNUNET_TIME_absolute_hton (ts); 691 fm->timestamp = GNUNET_TIME_absolute_hton (ts);
692 fm->pkey = my_public_key; 692 fm->pkey = my_public_key;
@@ -873,14 +873,14 @@ find_proof (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
873{ 873{
874#define ROUND_SIZE 10 874#define ROUND_SIZE 10
875 uint64_t counter; 875 uint64_t counter;
876 char buf[sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded) + 876 char buf[sizeof (struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded) +
877 sizeof (uint64_t)] GNUNET_ALIGN; 877 sizeof (uint64_t)] GNUNET_ALIGN;
878 struct GNUNET_HashCode result; 878 struct GNUNET_HashCode result;
879 unsigned int i; 879 unsigned int i;
880 880
881 proof_task = GNUNET_SCHEDULER_NO_TASK; 881 proof_task = GNUNET_SCHEDULER_NO_TASK;
882 memcpy (&buf[sizeof (uint64_t)], &my_public_key, 882 memcpy (&buf[sizeof (uint64_t)], &my_public_key,
883 sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded)); 883 sizeof (struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded));
884 i = 0; 884 i = 0;
885 counter = my_proof; 885 counter = my_proof;
886 while ((counter != UINT64_MAX) && (i < ROUND_SIZE)) 886 while ((counter != UINT64_MAX) && (i < ROUND_SIZE))
@@ -1033,7 +1033,7 @@ handle_p2p_size_estimate (void *cls, const struct GNUNET_PeerIdentity *peer,
1033 struct GNUNET_PeerIdentity os; 1033 struct GNUNET_PeerIdentity os;
1034 1034
1035 GNUNET_CRYPTO_hash (&incoming_flood->pkey, 1035 GNUNET_CRYPTO_hash (&incoming_flood->pkey,
1036 sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), 1036 sizeof (struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded),
1037 &os.hashPubKey); 1037 &os.hashPubKey);
1038 GNUNET_snprintf (origin, sizeof (origin), "%s", GNUNET_i2s (&os)); 1038 GNUNET_snprintf (origin, sizeof (origin), "%s", GNUNET_i2s (&os));
1039 GNUNET_snprintf (pred, sizeof (pred), "%s", GNUNET_i2s (peer)); 1039 GNUNET_snprintf (pred, sizeof (pred), "%s", GNUNET_i2s (peer));