diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-10 14:38:55 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-10 14:38:55 +0000 |
commit | 9351b1e9bdf2b067b6db06562c26ba658cff42b8 (patch) | |
tree | 68dc4ab447e7e8b6a20a706858cd36238c1c7c5f /src/include/gnunet_namestore_service.h | |
parent | 8beabcd96c0cf1e1873c0b5ff96e537f1beb0b34 (diff) | |
download | gnunet-9351b1e9bdf2b067b6db06562c26ba658cff42b8.tar.gz gnunet-9351b1e9bdf2b067b6db06562c26ba658cff42b8.zip |
separating ECC crypto into functions/structs for ECDHE, ECDSA and EDDSA
Diffstat (limited to 'src/include/gnunet_namestore_service.h')
-rw-r--r-- | src/include/gnunet_namestore_service.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/include/gnunet_namestore_service.h b/src/include/gnunet_namestore_service.h index 7e39adc49..c31c3689b 100644 --- a/src/include/gnunet_namestore_service.h +++ b/src/include/gnunet_namestore_service.h | |||
@@ -239,12 +239,12 @@ struct GNUNET_NAMESTORE_Block | |||
239 | /** | 239 | /** |
240 | * Signature of the block. | 240 | * Signature of the block. |
241 | */ | 241 | */ |
242 | struct GNUNET_CRYPTO_EccSignature signature; | 242 | struct GNUNET_CRYPTO_EcdsaSignature signature; |
243 | 243 | ||
244 | /** | 244 | /** |
245 | * Derived key used for signing; hash of this is the query. | 245 | * Derived key used for signing; hash of this is the query. |
246 | */ | 246 | */ |
247 | struct GNUNET_CRYPTO_EccPublicSignKey derived_key; | 247 | struct GNUNET_CRYPTO_EcdsaPublicKey derived_key; |
248 | 248 | ||
249 | /** | 249 | /** |
250 | * Number of bytes signed; also specifies the number of bytes | 250 | * Number of bytes signed; also specifies the number of bytes |
@@ -297,7 +297,7 @@ GNUNET_NAMESTORE_block_cache (struct GNUNET_NAMESTORE_Handle *h, | |||
297 | */ | 297 | */ |
298 | struct GNUNET_NAMESTORE_QueueEntry * | 298 | struct GNUNET_NAMESTORE_QueueEntry * |
299 | GNUNET_NAMESTORE_records_store (struct GNUNET_NAMESTORE_Handle *h, | 299 | GNUNET_NAMESTORE_records_store (struct GNUNET_NAMESTORE_Handle *h, |
300 | const struct GNUNET_CRYPTO_EccPrivateKey *pkey, | 300 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, |
301 | const char *label, | 301 | const char *label, |
302 | unsigned int rd_count, | 302 | unsigned int rd_count, |
303 | const struct GNUNET_NAMESTORE_RecordData *rd, | 303 | const struct GNUNET_NAMESTORE_RecordData *rd, |
@@ -343,7 +343,7 @@ GNUNET_NAMESTORE_lookup_block (struct GNUNET_NAMESTORE_Handle *h, | |||
343 | * @param rd array of records with data to store | 343 | * @param rd array of records with data to store |
344 | */ | 344 | */ |
345 | typedef void (*GNUNET_NAMESTORE_RecordMonitor) (void *cls, | 345 | typedef void (*GNUNET_NAMESTORE_RecordMonitor) (void *cls, |
346 | const struct GNUNET_CRYPTO_EccPrivateKey *zone, | 346 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
347 | const char *label, | 347 | const char *label, |
348 | unsigned int rd_count, | 348 | unsigned int rd_count, |
349 | const struct GNUNET_NAMESTORE_RecordData *rd); | 349 | const struct GNUNET_NAMESTORE_RecordData *rd); |
@@ -364,8 +364,8 @@ typedef void (*GNUNET_NAMESTORE_RecordMonitor) (void *cls, | |||
364 | */ | 364 | */ |
365 | struct GNUNET_NAMESTORE_QueueEntry * | 365 | struct GNUNET_NAMESTORE_QueueEntry * |
366 | GNUNET_NAMESTORE_zone_to_name (struct GNUNET_NAMESTORE_Handle *h, | 366 | GNUNET_NAMESTORE_zone_to_name (struct GNUNET_NAMESTORE_Handle *h, |
367 | const struct GNUNET_CRYPTO_EccPrivateKey *zone, | 367 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
368 | const struct GNUNET_CRYPTO_EccPublicSignKey *value_zone, | 368 | const struct GNUNET_CRYPTO_EcdsaPublicKey *value_zone, |
369 | GNUNET_NAMESTORE_RecordMonitor proc, void *proc_cls); | 369 | GNUNET_NAMESTORE_RecordMonitor proc, void *proc_cls); |
370 | 370 | ||
371 | 371 | ||
@@ -411,7 +411,7 @@ GNUNET_NAMESTORE_cancel (struct GNUNET_NAMESTORE_QueueEntry *qe); | |||
411 | */ | 411 | */ |
412 | struct GNUNET_NAMESTORE_ZoneIterator * | 412 | struct GNUNET_NAMESTORE_ZoneIterator * |
413 | GNUNET_NAMESTORE_zone_iteration_start (struct GNUNET_NAMESTORE_Handle *h, | 413 | GNUNET_NAMESTORE_zone_iteration_start (struct GNUNET_NAMESTORE_Handle *h, |
414 | const struct GNUNET_CRYPTO_EccPrivateKey *zone, | 414 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
415 | GNUNET_NAMESTORE_RecordMonitor proc, | 415 | GNUNET_NAMESTORE_RecordMonitor proc, |
416 | void *proc_cls); | 416 | void *proc_cls); |
417 | 417 | ||
@@ -471,7 +471,7 @@ typedef void (*GNUNET_NAMESTORE_RecordsSynchronizedCallback)(void *cls); | |||
471 | */ | 471 | */ |
472 | struct GNUNET_NAMESTORE_ZoneMonitor * | 472 | struct GNUNET_NAMESTORE_ZoneMonitor * |
473 | GNUNET_NAMESTORE_zone_monitor_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | 473 | GNUNET_NAMESTORE_zone_monitor_start (const struct GNUNET_CONFIGURATION_Handle *cfg, |
474 | const struct GNUNET_CRYPTO_EccPrivateKey *zone, | 474 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
475 | GNUNET_NAMESTORE_RecordMonitor monitor, | 475 | GNUNET_NAMESTORE_RecordMonitor monitor, |
476 | GNUNET_NAMESTORE_RecordsSynchronizedCallback sync_cb, | 476 | GNUNET_NAMESTORE_RecordsSynchronizedCallback sync_cb, |
477 | void *cls); | 477 | void *cls); |
@@ -614,7 +614,7 @@ GNUNET_NAMESTORE_normalize_string (const char *src); | |||
614 | * @return string form; will be overwritten by next call to #GNUNET_NAMESTORE_z2s. | 614 | * @return string form; will be overwritten by next call to #GNUNET_NAMESTORE_z2s. |
615 | */ | 615 | */ |
616 | const char * | 616 | const char * |
617 | GNUNET_NAMESTORE_z2s (const struct GNUNET_CRYPTO_EccPublicSignKey *z); | 617 | GNUNET_NAMESTORE_z2s (const struct GNUNET_CRYPTO_EcdsaPublicKey *z); |
618 | 618 | ||
619 | 619 | ||
620 | /** | 620 | /** |
@@ -628,7 +628,7 @@ GNUNET_NAMESTORE_z2s (const struct GNUNET_CRYPTO_EccPublicSignKey *z); | |||
628 | * key in an encoding suitable for DNS labels. | 628 | * key in an encoding suitable for DNS labels. |
629 | */ | 629 | */ |
630 | const char * | 630 | const char * |
631 | GNUNET_NAMESTORE_pkey_to_zkey (const struct GNUNET_CRYPTO_EccPublicSignKey *pkey); | 631 | GNUNET_NAMESTORE_pkey_to_zkey (const struct GNUNET_CRYPTO_EcdsaPublicKey *pkey); |
632 | 632 | ||
633 | 633 | ||
634 | /** | 634 | /** |
@@ -642,7 +642,7 @@ GNUNET_NAMESTORE_pkey_to_zkey (const struct GNUNET_CRYPTO_EccPublicSignKey *pkey | |||
642 | */ | 642 | */ |
643 | int | 643 | int |
644 | GNUNET_NAMESTORE_zkey_to_pkey (const char *zkey, | 644 | GNUNET_NAMESTORE_zkey_to_pkey (const char *zkey, |
645 | struct GNUNET_CRYPTO_EccPublicSignKey *pkey); | 645 | struct GNUNET_CRYPTO_EcdsaPublicKey *pkey); |
646 | 646 | ||
647 | 647 | ||
648 | /** | 648 | /** |
@@ -653,7 +653,7 @@ GNUNET_NAMESTORE_zkey_to_pkey (const char *zkey, | |||
653 | * @param query hash to use for the query | 653 | * @param query hash to use for the query |
654 | */ | 654 | */ |
655 | void | 655 | void |
656 | GNUNET_NAMESTORE_query_from_private_key (const struct GNUNET_CRYPTO_EccPrivateKey *zone, | 656 | GNUNET_NAMESTORE_query_from_private_key (const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
657 | const char *label, | 657 | const char *label, |
658 | struct GNUNET_HashCode *query); | 658 | struct GNUNET_HashCode *query); |
659 | 659 | ||
@@ -666,7 +666,7 @@ GNUNET_NAMESTORE_query_from_private_key (const struct GNUNET_CRYPTO_EccPrivateKe | |||
666 | * @param query hash to use for the query | 666 | * @param query hash to use for the query |
667 | */ | 667 | */ |
668 | void | 668 | void |
669 | GNUNET_NAMESTORE_query_from_public_key (const struct GNUNET_CRYPTO_EccPublicSignKey *pub, | 669 | GNUNET_NAMESTORE_query_from_public_key (const struct GNUNET_CRYPTO_EcdsaPublicKey *pub, |
670 | const char *label, | 670 | const char *label, |
671 | struct GNUNET_HashCode *query); | 671 | struct GNUNET_HashCode *query); |
672 | 672 | ||
@@ -681,7 +681,7 @@ GNUNET_NAMESTORE_query_from_public_key (const struct GNUNET_CRYPTO_EccPublicSign | |||
681 | * @param rd_count number of records in @a rd | 681 | * @param rd_count number of records in @a rd |
682 | */ | 682 | */ |
683 | struct GNUNET_NAMESTORE_Block * | 683 | struct GNUNET_NAMESTORE_Block * |
684 | GNUNET_NAMESTORE_block_create (const struct GNUNET_CRYPTO_EccPrivateKey *key, | 684 | GNUNET_NAMESTORE_block_create (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key, |
685 | struct GNUNET_TIME_Absolute expire, | 685 | struct GNUNET_TIME_Absolute expire, |
686 | const char *label, | 686 | const char *label, |
687 | const struct GNUNET_NAMESTORE_RecordData *rd, | 687 | const struct GNUNET_NAMESTORE_RecordData *rd, |
@@ -712,7 +712,7 @@ GNUNET_NAMESTORE_block_verify (const struct GNUNET_NAMESTORE_Block *block); | |||
712 | */ | 712 | */ |
713 | int | 713 | int |
714 | GNUNET_NAMESTORE_block_decrypt (const struct GNUNET_NAMESTORE_Block *block, | 714 | GNUNET_NAMESTORE_block_decrypt (const struct GNUNET_NAMESTORE_Block *block, |
715 | const struct GNUNET_CRYPTO_EccPublicSignKey *zone_key, | 715 | const struct GNUNET_CRYPTO_EcdsaPublicKey *zone_key, |
716 | const char *label, | 716 | const char *label, |
717 | GNUNET_NAMESTORE_RecordCallback proc, | 717 | GNUNET_NAMESTORE_RecordCallback proc, |
718 | void *proc_cls); | 718 | void *proc_cls); |