aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/namestore.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-05-29 08:18:55 +0000
committerChristian Grothoff <christian@grothoff.org>2013-05-29 08:18:55 +0000
commit022002438e4047d235a688cfd9da7b63ab990103 (patch)
tree8d0cb444a3ab376b5a8f614fb87bdeb31e7b3327 /src/namestore/namestore.h
parentb62eb443ee3af84f87030fad9fd11a948b1a2503 (diff)
downloadgnunet-022002438e4047d235a688cfd9da7b63ab990103.tar.gz
gnunet-022002438e4047d235a688cfd9da7b63ab990103.zip
-switching GNS from RSA to ECC
Diffstat (limited to 'src/namestore/namestore.h')
-rw-r--r--src/namestore/namestore.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/namestore/namestore.h b/src/namestore/namestore.h
index 0e7ecfda3..b0d3ffad0 100644
--- a/src/namestore/namestore.h
+++ b/src/namestore/namestore.h
@@ -62,8 +62,8 @@ GNUNET_short_h2s (const struct GNUNET_CRYPTO_ShortHashCode * hc);
62 * 62 *
63 * @return the signature 63 * @return the signature
64 */ 64 */
65struct GNUNET_CRYPTO_RsaSignature * 65struct GNUNET_CRYPTO_EccSignature *
66GNUNET_NAMESTORE_create_signature (const struct GNUNET_CRYPTO_RsaPrivateKey *key, 66GNUNET_NAMESTORE_create_signature (const struct GNUNET_CRYPTO_EccPrivateKey *key,
67 struct GNUNET_TIME_Absolute expire, 67 struct GNUNET_TIME_Absolute expire,
68 const char *name, 68 const char *name,
69 const struct GNUNET_NAMESTORE_RecordData *rd, 69 const struct GNUNET_NAMESTORE_RecordData *rd,
@@ -212,12 +212,12 @@ struct LookupNameResponseMessage
212 /** 212 /**
213 * All zeros if 'contains_sig' is GNUNET_NO. 213 * All zeros if 'contains_sig' is GNUNET_NO.
214 */ 214 */
215 struct GNUNET_CRYPTO_RsaSignature signature; 215 struct GNUNET_CRYPTO_EccSignature signature;
216 216
217 /** 217 /**
218 * The public key for the name 218 * The public key for the name
219 */ 219 */
220 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded public_key; 220 struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded public_key;
221 221
222 /* 0-terminated name and serialized record data */ 222 /* 0-terminated name and serialized record data */
223 /* rd_len bytes serialized record data */ 223 /* rd_len bytes serialized record data */
@@ -262,12 +262,12 @@ struct RecordPutMessage
262 /** 262 /**
263 * The signature 263 * The signature
264 */ 264 */
265 struct GNUNET_CRYPTO_RsaSignature signature; 265 struct GNUNET_CRYPTO_EccSignature signature;
266 266
267 /** 267 /**
268 * The public key 268 * The public key
269 */ 269 */
270 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded public_key; 270 struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded public_key;
271 271
272 /* name (0-terminated) followed by "rd_count" serialized records */ 272 /* name (0-terminated) followed by "rd_count" serialized records */
273 273
@@ -327,7 +327,7 @@ struct RecordCreateMessage
327 uint16_t pkey_len; 327 uint16_t pkey_len;
328 328
329 /* followed by: 329 /* followed by:
330 * GNUNET_CRYPTO_RsaPrivateKeyBinaryEncoded private key with length pkey_len 330 * GNUNET_CRYPTO_EccPrivateKeyBinaryEncoded private key with length pkey_len
331 * name with length name_len 331 * name with length name_len
332 * serialized record data with length rd_len 332 * serialized record data with length rd_len
333 * */ 333 * */
@@ -383,7 +383,7 @@ struct RecordRemoveMessage
383 uint16_t pkey_len; 383 uint16_t pkey_len;
384 384
385 /* followed by: 385 /* followed by:
386 * GNUNET_CRYPTO_RsaPrivateKeyBinaryEncoded private key with length pkey_len 386 * GNUNET_CRYPTO_EccPrivateKeyBinaryEncoded private key with length pkey_len
387 * name with length name_len 387 * name with length name_len
388 * serialized record data with length rd_len 388 * serialized record data with length rd_len
389 * */ 389 * */
@@ -507,12 +507,12 @@ struct ZoneToNameResponseMessage
507 /** 507 /**
508 * Signature 508 * Signature
509 */ 509 */
510 struct GNUNET_CRYPTO_RsaSignature signature; 510 struct GNUNET_CRYPTO_EccSignature signature;
511 511
512 /** 512 /**
513 * Publik key 513 * Publik key
514 */ 514 */
515 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded zone_key; 515 struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded zone_key;
516 516
517}; 517};
518 518
@@ -600,12 +600,12 @@ struct ZoneIterationResponseMessage
600 /** 600 /**
601 * All zeros if 'contains_sig' is GNUNET_NO. 601 * All zeros if 'contains_sig' is GNUNET_NO.
602 */ 602 */
603 struct GNUNET_CRYPTO_RsaSignature signature; 603 struct GNUNET_CRYPTO_EccSignature signature;
604 604
605 /** 605 /**
606 * The public key 606 * The public key
607 */ 607 */
608 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded public_key; 608 struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded public_key;
609 609
610 610
611 611