diff options
author | Florian Dold <florian.dold@gmail.com> | 2014-01-21 09:40:50 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2014-01-21 09:40:50 +0000 |
commit | 0fef52ef6595387d26ffc4b3233bf751b1bb8078 (patch) | |
tree | d325b68a6ce325780c98beaafa6b7870908b9513 /src/secretsharing/secretsharing_protocol.h | |
parent | cbf0ad306298a3c214b2c1ea64ea8f5a66860403 (diff) | |
download | gnunet-0fef52ef6595387d26ffc4b3233bf751b1bb8078.tar.gz gnunet-0fef52ef6595387d26ffc4b3233bf751b1bb8078.zip |
paillier constants / structs from util
Diffstat (limited to 'src/secretsharing/secretsharing_protocol.h')
-rw-r--r-- | src/secretsharing/secretsharing_protocol.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/secretsharing/secretsharing_protocol.h b/src/secretsharing/secretsharing_protocol.h index 5d833cbb3..3930c1231 100644 --- a/src/secretsharing/secretsharing_protocol.h +++ b/src/secretsharing/secretsharing_protocol.h | |||
@@ -33,28 +33,11 @@ | |||
33 | #include "gnunet_protocols.h" | 33 | #include "gnunet_protocols.h" |
34 | #include "secretsharing.h" | 34 | #include "secretsharing.h" |
35 | 35 | ||
36 | /** | ||
37 | * Bit length used for the Paillier crypto system. | ||
38 | */ | ||
39 | #define PAILLIER_BITS 2048 | ||
40 | 36 | ||
41 | GNUNET_NETWORK_STRUCT_BEGIN | 37 | GNUNET_NETWORK_STRUCT_BEGIN |
42 | 38 | ||
43 | 39 | ||
44 | /** | 40 | /** |
45 | * Public key for the Paillier crypto system. | ||
46 | */ | ||
47 | struct PaillierPublicKey | ||
48 | { | ||
49 | /** | ||
50 | * Network order representation of the | ||
51 | * n-component. | ||
52 | */ | ||
53 | uint32_t n[PAILLIER_BITS / 8 / sizeof (uint32_t)]; | ||
54 | }; | ||
55 | |||
56 | |||
57 | /** | ||
58 | * Consensus element data used in the first round of key generation. | 41 | * Consensus element data used in the first round of key generation. |
59 | */ | 42 | */ |
60 | struct GNUNET_SECRETSHARING_KeygenCommitData | 43 | struct GNUNET_SECRETSHARING_KeygenCommitData |
@@ -75,7 +58,7 @@ struct GNUNET_SECRETSHARING_KeygenCommitData | |||
75 | * Ephemeral paillier public key used by 'peer' for | 58 | * Ephemeral paillier public key used by 'peer' for |
76 | * this session. | 59 | * this session. |
77 | */ | 60 | */ |
78 | struct PaillierPublicKey pubkey GNUNET_PACKED; | 61 | struct GNUNET_CRYPTO_PaillierPublicKey pubkey; |
79 | /** | 62 | /** |
80 | * Commitment of 'peer' to his presecret. | 63 | * Commitment of 'peer' to his presecret. |
81 | */ | 64 | */ |