diff options
Diffstat (limited to 'src/secretsharing/gnunet-service-secretsharing.c')
-rw-r--r-- | src/secretsharing/gnunet-service-secretsharing.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/secretsharing/gnunet-service-secretsharing.c b/src/secretsharing/gnunet-service-secretsharing.c index b97b6f62a..ddbe81576 100644 --- a/src/secretsharing/gnunet-service-secretsharing.c +++ b/src/secretsharing/gnunet-service-secretsharing.c | |||
@@ -473,7 +473,7 @@ normalize_peers (struct GNUNET_PeerIdentity *listed, | |||
473 | if (GNUNET_NO == local_peer_in_list) | 473 | if (GNUNET_NO == local_peer_in_list) |
474 | normalized[n - 1] = my_peer; | 474 | normalized[n - 1] = my_peer; |
475 | 475 | ||
476 | memcpy (normalized, | 476 | GNUNET_memcpy (normalized, |
477 | listed, | 477 | listed, |
478 | num_listed * sizeof (struct GNUNET_PeerIdentity)); | 478 | num_listed * sizeof (struct GNUNET_PeerIdentity)); |
479 | qsort (normalized, | 479 | qsort (normalized, |
@@ -1039,10 +1039,10 @@ get_fair_encryption_challenge (const struct GNUNET_SECRETSHARING_FairEncryption | |||
1039 | } hash_data; | 1039 | } hash_data; |
1040 | struct GNUNET_HashCode e_hash; | 1040 | struct GNUNET_HashCode e_hash; |
1041 | 1041 | ||
1042 | memcpy (&hash_data.c, &fe->c, sizeof (struct GNUNET_CRYPTO_PaillierCiphertext)); | 1042 | GNUNET_memcpy (&hash_data.c, &fe->c, sizeof (struct GNUNET_CRYPTO_PaillierCiphertext)); |
1043 | memcpy (&hash_data.h, &fe->h, GNUNET_SECRETSHARING_ELGAMAL_BITS / 8); | 1043 | GNUNET_memcpy (&hash_data.h, &fe->h, GNUNET_SECRETSHARING_ELGAMAL_BITS / 8); |
1044 | memcpy (&hash_data.t1, &fe->t1, GNUNET_SECRETSHARING_ELGAMAL_BITS / 8); | 1044 | GNUNET_memcpy (&hash_data.t1, &fe->t1, GNUNET_SECRETSHARING_ELGAMAL_BITS / 8); |
1045 | memcpy (&hash_data.t2, &fe->t2, GNUNET_CRYPTO_PAILLIER_BITS * 2 / 8); | 1045 | GNUNET_memcpy (&hash_data.t2, &fe->t2, GNUNET_CRYPTO_PAILLIER_BITS * 2 / 8); |
1046 | 1046 | ||
1047 | GNUNET_CRYPTO_mpi_scan_unsigned (&e, &e_hash, sizeof (struct GNUNET_HashCode)); | 1047 | GNUNET_CRYPTO_mpi_scan_unsigned (&e, &e_hash, sizeof (struct GNUNET_HashCode)); |
1048 | gcry_mpi_mod (e, e, elgamal_q); | 1048 | gcry_mpi_mod (e, e, elgamal_q); |