aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r--src/include/gnunet_crypto_lib.h39
1 files changed, 8 insertions, 31 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index 980710b19..c65c9223a 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -194,16 +194,8 @@ struct GNUNET_CRYPTO_EcdsaSignature
194struct GNUNET_CRYPTO_EddsaPublicKey 194struct GNUNET_CRYPTO_EddsaPublicKey
195{ 195{
196 /** 196 /**
197 * Q consists of an x- and a y-value, each mod p (256 bits), 197 * Q consists of an x- and a y-value, each mod p (256 bits), given
198 * given here in affine coordinates. 198 * here in affine coordinates and Ed25519 standard compact format.
199 *
200 * FIXME: this coordinate will be removed in the future (compressed point!).
201 */
202 unsigned char q_x[256 / 8];
203
204 /**
205 * Q consists of an x- and a y-value, each mod p (256 bits),
206 * given here in affine coordinates.
207 */ 199 */
208 unsigned char q_y[256 / 8]; 200 unsigned char q_y[256 / 8];
209 201
@@ -217,16 +209,10 @@ struct GNUNET_CRYPTO_EddsaPublicKey
217struct GNUNET_CRYPTO_EcdsaPublicKey 209struct GNUNET_CRYPTO_EcdsaPublicKey
218{ 210{
219 /** 211 /**
220 * Q consists of an x- and a y-value, each mod p (256 bits), 212 * Q consists of an x- and a y-value, each mod p (256 bits), given
221 * given here in affine coordinates. 213 * here in affine coordinates. For the Ed25519 curve we need to
222 * 214 * convey the y-value along with the sign. The compact format used
223 * FIXME: this coordinate will be removed in the future (compressed point!). 215 * is the same as with EdDSA (little endian).
224 */
225 unsigned char q_x[256 / 8];
226
227 /**
228 * Q consists of an x- and a y-value, each mod p (256 bits),
229 * given here in affine coordinates.
230 */ 216 */
231 unsigned char q_y[256 / 8]; 217 unsigned char q_y[256 / 8];
232 218
@@ -250,19 +236,10 @@ struct GNUNET_PeerIdentity
250struct GNUNET_CRYPTO_EcdhePublicKey 236struct GNUNET_CRYPTO_EcdhePublicKey
251{ 237{
252 /** 238 /**
253 * Q consists of an x- and a y-value, each mod p (256 bits), 239 * Q consists of an x- and a y-value, each mod p (256 bits), given
254 * given here in affine coordinates. 240 * here in affine coordinates and Ed25519 standard compact format.
255 */
256 unsigned char q_x[256 / 8];
257
258 /**
259 * Q consists of an x- and a y-value, each mod p (256 bits),
260 * given here in affine coordinates.
261 *
262 * FIXME: this coordinate will be removed in the future (compressed point!).
263 */ 241 */
264 unsigned char q_y[256 / 8]; 242 unsigned char q_y[256 / 8];
265
266}; 243};
267 244
268 245