aboutsummaryrefslogtreecommitdiff
path: root/src/secretsharing/secretsharing_protocol.h
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2013-12-10 11:14:22 +0000
committerFlorian Dold <florian.dold@gmail.com>2013-12-10 11:14:22 +0000
commitf3a98e004caf91688887a01b5fe2ad3f11813238 (patch)
tree74fc500c7771e38e6cc2f71d18953cdf210a5f9f /src/secretsharing/secretsharing_protocol.h
parent119237806b48c9220abc1b96b860bb8f7af03417 (diff)
downloadgnunet-f3a98e004caf91688887a01b5fe2ad3f11813238.tar.gz
gnunet-f3a98e004caf91688887a01b5fe2ad3f11813238.zip
- key generation for secretsharing
- gnunet-ecc -E also prints hex
Diffstat (limited to 'src/secretsharing/secretsharing_protocol.h')
-rw-r--r--src/secretsharing/secretsharing_protocol.h25
1 files changed, 22 insertions, 3 deletions
diff --git a/src/secretsharing/secretsharing_protocol.h b/src/secretsharing/secretsharing_protocol.h
index 71e6d50a9..470002f10 100644
--- a/src/secretsharing/secretsharing_protocol.h
+++ b/src/secretsharing/secretsharing_protocol.h
@@ -60,9 +60,9 @@ struct PaillierPublicKey
60 60
61 /** 61 /**
62 * Network order representation of the 62 * Network order representation of the
63 * g-component. 63 * n-component.
64 */ 64 */
65 uint32_t mu[PAILLIER_BITS / 8 / sizeof (uint32_t)]; 65 uint32_t n[PAILLIER_BITS / 8 / sizeof (uint32_t)];
66}; 66};
67 67
68 68
@@ -72,6 +72,10 @@ struct PaillierPublicKey
72struct GNUNET_SECRETSHARING_KeygenCommitData 72struct GNUNET_SECRETSHARING_KeygenCommitData
73{ 73{
74 /** 74 /**
75 * Signature over the rest of the message.
76 */
77 struct GNUNET_CRYPTO_EddsaSignature signature;
78 /**
75 * Signature purpose for signing the keygen commit data. 79 * Signature purpose for signing the keygen commit data.
76 */ 80 */
77 struct GNUNET_CRYPTO_EccSignaturePurpose purpose; 81 struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
@@ -88,10 +92,25 @@ struct GNUNET_SECRETSHARING_KeygenCommitData
88 * Commitment of 'peer' to his presecret. 92 * Commitment of 'peer' to his presecret.
89 */ 93 */
90 struct GNUNET_HashCode commitment GNUNET_PACKED; 94 struct GNUNET_HashCode commitment GNUNET_PACKED;
95};
96
97
98struct GNUNET_SECRETSHARING_KeygenRevealData
99{
91 /** 100 /**
92 * Signature over the previous values. 101 * Signature over rest of the message.
93 */ 102 */
94 struct GNUNET_CRYPTO_EddsaSignature signature; 103 struct GNUNET_CRYPTO_EddsaSignature signature;
104 /*
105 * Signature purpose for signing the keygen commit data.
106 */
107 struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
108 /**
109 * Peer that inserts this element.
110 */
111 struct GNUNET_PeerIdentity peer;
112
113 /* values follow */
95}; 114};
96 115
97GNUNET_NETWORK_STRUCT_END 116GNUNET_NETWORK_STRUCT_END