aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/namestore.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-06 14:18:31 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-06 14:18:31 +0000
commitfe76c075e315c0351e2fe465434ae39087daf014 (patch)
tree436887ccaf331932a3c13a8b9d2a2a710dad4be6 /src/namestore/namestore.h
parent7eb2835d8a494c83aedb720a2ac6f6e5ba23f22f (diff)
downloadgnunet-fe76c075e315c0351e2fe465434ae39087daf014.tar.gz
gnunet-fe76c075e315c0351e2fe465434ae39087daf014.zip
moving to new, fixed-size encoding of public and private ECC keys everywhere, also improving ECC API to better support ECRS/GADS operations
Diffstat (limited to 'src/namestore/namestore.h')
-rw-r--r--src/namestore/namestore.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/namestore/namestore.h b/src/namestore/namestore.h
index 7245e1631..58ecbf65d 100644
--- a/src/namestore/namestore.h
+++ b/src/namestore/namestore.h
@@ -166,7 +166,7 @@ struct LookupNameResponseMessage
166 /** 166 /**
167 * The public key for the name 167 * The public key for the name
168 */ 168 */
169 struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded public_key; 169 struct GNUNET_CRYPTO_EccPublicKey public_key;
170 170
171 /* 0-terminated name and serialized record data */ 171 /* 0-terminated name and serialized record data */
172 /* rd_len bytes serialized record data */ 172 /* rd_len bytes serialized record data */
@@ -216,7 +216,7 @@ struct RecordPutMessage
216 /** 216 /**
217 * The public key 217 * The public key
218 */ 218 */
219 struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded public_key; 219 struct GNUNET_CRYPTO_EccPublicKey public_key;
220 220
221 /* name (0-terminated) followed by "rd_count" serialized records */ 221 /* name (0-terminated) followed by "rd_count" serialized records */
222 222
@@ -271,15 +271,16 @@ struct RecordCreateMessage
271 uint16_t rd_count; 271 uint16_t rd_count;
272 272
273 /** 273 /**
274 * private key length 274 * always zero
275 */ 275 */
276 uint16_t pkey_len; 276 uint16_t reserved;
277
278 struct GNUNET_CRYPTO_EccPrivateKey private_key;
277 279
278 /* followed by: 280 /* followed by:
279 * GNUNET_CRYPTO_EccPrivateKeyBinaryEncoded private key with length pkey_len
280 * name with length name_len 281 * name with length name_len
281 * serialized record data with length rd_len 282 * serialized record data with length rd_len
282 * */ 283 */
283}; 284};
284 285
285 286
@@ -366,7 +367,7 @@ struct ZoneToNameResponseMessage
366 /** 367 /**
367 * Publik key 368 * Publik key
368 */ 369 */
369 struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded zone_key; 370 struct GNUNET_CRYPTO_EccPublicKey zone_key;
370 371
371}; 372};
372 373