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/psycstore/psycstore_api.c | |
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/psycstore/psycstore_api.c')
-rw-r--r-- | src/psycstore/psycstore_api.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/psycstore/psycstore_api.c b/src/psycstore/psycstore_api.c index 0e72d9ca2..55d7f73ec 100644 --- a/src/psycstore/psycstore_api.c +++ b/src/psycstore/psycstore_api.c | |||
@@ -655,8 +655,8 @@ GNUNET_PSYCSTORE_operation_cancel (struct GNUNET_PSYCSTORE_OperationHandle *op) | |||
655 | */ | 655 | */ |
656 | struct GNUNET_PSYCSTORE_OperationHandle * | 656 | struct GNUNET_PSYCSTORE_OperationHandle * |
657 | GNUNET_PSYCSTORE_membership_store (struct GNUNET_PSYCSTORE_Handle *h, | 657 | GNUNET_PSYCSTORE_membership_store (struct GNUNET_PSYCSTORE_Handle *h, |
658 | const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key, | 658 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, |
659 | const struct GNUNET_CRYPTO_EccPublicSignKey *slave_key, | 659 | const struct GNUNET_CRYPTO_EddsaPublicKey *slave_key, |
660 | int did_join, | 660 | int did_join, |
661 | uint64_t announced_at, | 661 | uint64_t announced_at, |
662 | uint64_t effective_since, | 662 | uint64_t effective_since, |
@@ -721,8 +721,8 @@ GNUNET_PSYCSTORE_membership_store (struct GNUNET_PSYCSTORE_Handle *h, | |||
721 | */ | 721 | */ |
722 | struct GNUNET_PSYCSTORE_OperationHandle * | 722 | struct GNUNET_PSYCSTORE_OperationHandle * |
723 | GNUNET_PSYCSTORE_membership_test (struct GNUNET_PSYCSTORE_Handle *h, | 723 | GNUNET_PSYCSTORE_membership_test (struct GNUNET_PSYCSTORE_Handle *h, |
724 | const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key, | 724 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, |
725 | const struct GNUNET_CRYPTO_EccPublicSignKey *slave_key, | 725 | const struct GNUNET_CRYPTO_EddsaPublicKey *slave_key, |
726 | uint64_t message_id, | 726 | uint64_t message_id, |
727 | uint64_t group_generation, | 727 | uint64_t group_generation, |
728 | GNUNET_PSYCSTORE_ResultCallback rcb, | 728 | GNUNET_PSYCSTORE_ResultCallback rcb, |
@@ -769,7 +769,7 @@ GNUNET_PSYCSTORE_membership_test (struct GNUNET_PSYCSTORE_Handle *h, | |||
769 | */ | 769 | */ |
770 | struct GNUNET_PSYCSTORE_OperationHandle * | 770 | struct GNUNET_PSYCSTORE_OperationHandle * |
771 | GNUNET_PSYCSTORE_fragment_store (struct GNUNET_PSYCSTORE_Handle *h, | 771 | GNUNET_PSYCSTORE_fragment_store (struct GNUNET_PSYCSTORE_Handle *h, |
772 | const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key, | 772 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, |
773 | const struct GNUNET_MULTICAST_MessageHeader *message, | 773 | const struct GNUNET_MULTICAST_MessageHeader *message, |
774 | uint32_t psycstore_flags, | 774 | uint32_t psycstore_flags, |
775 | GNUNET_PSYCSTORE_ResultCallback rcb, | 775 | GNUNET_PSYCSTORE_ResultCallback rcb, |
@@ -815,7 +815,7 @@ GNUNET_PSYCSTORE_fragment_store (struct GNUNET_PSYCSTORE_Handle *h, | |||
815 | */ | 815 | */ |
816 | struct GNUNET_PSYCSTORE_OperationHandle * | 816 | struct GNUNET_PSYCSTORE_OperationHandle * |
817 | GNUNET_PSYCSTORE_fragment_get (struct GNUNET_PSYCSTORE_Handle *h, | 817 | GNUNET_PSYCSTORE_fragment_get (struct GNUNET_PSYCSTORE_Handle *h, |
818 | const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key, | 818 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, |
819 | uint64_t fragment_id, | 819 | uint64_t fragment_id, |
820 | GNUNET_PSYCSTORE_FragmentCallback fcb, | 820 | GNUNET_PSYCSTORE_FragmentCallback fcb, |
821 | GNUNET_PSYCSTORE_ResultCallback rcb, | 821 | GNUNET_PSYCSTORE_ResultCallback rcb, |
@@ -860,7 +860,7 @@ GNUNET_PSYCSTORE_fragment_get (struct GNUNET_PSYCSTORE_Handle *h, | |||
860 | */ | 860 | */ |
861 | struct GNUNET_PSYCSTORE_OperationHandle * | 861 | struct GNUNET_PSYCSTORE_OperationHandle * |
862 | GNUNET_PSYCSTORE_message_get (struct GNUNET_PSYCSTORE_Handle *h, | 862 | GNUNET_PSYCSTORE_message_get (struct GNUNET_PSYCSTORE_Handle *h, |
863 | const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key, | 863 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, |
864 | uint64_t message_id, | 864 | uint64_t message_id, |
865 | GNUNET_PSYCSTORE_FragmentCallback fcb, | 865 | GNUNET_PSYCSTORE_FragmentCallback fcb, |
866 | GNUNET_PSYCSTORE_ResultCallback rcb, | 866 | GNUNET_PSYCSTORE_ResultCallback rcb, |
@@ -907,7 +907,7 @@ GNUNET_PSYCSTORE_message_get (struct GNUNET_PSYCSTORE_Handle *h, | |||
907 | */ | 907 | */ |
908 | struct GNUNET_PSYCSTORE_OperationHandle * | 908 | struct GNUNET_PSYCSTORE_OperationHandle * |
909 | GNUNET_PSYCSTORE_message_get_fragment (struct GNUNET_PSYCSTORE_Handle *h, | 909 | GNUNET_PSYCSTORE_message_get_fragment (struct GNUNET_PSYCSTORE_Handle *h, |
910 | const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key, | 910 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, |
911 | uint64_t message_id, | 911 | uint64_t message_id, |
912 | uint64_t fragment_offset, | 912 | uint64_t fragment_offset, |
913 | GNUNET_PSYCSTORE_FragmentCallback fcb, | 913 | GNUNET_PSYCSTORE_FragmentCallback fcb, |
@@ -955,7 +955,7 @@ GNUNET_PSYCSTORE_message_get_fragment (struct GNUNET_PSYCSTORE_Handle *h, | |||
955 | */ | 955 | */ |
956 | struct GNUNET_PSYCSTORE_OperationHandle * | 956 | struct GNUNET_PSYCSTORE_OperationHandle * |
957 | GNUNET_PSYCSTORE_counters_get (struct GNUNET_PSYCSTORE_Handle *h, | 957 | GNUNET_PSYCSTORE_counters_get (struct GNUNET_PSYCSTORE_Handle *h, |
958 | struct GNUNET_CRYPTO_EccPublicSignKey *channel_key, | 958 | struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, |
959 | GNUNET_PSYCSTORE_CountersCallback ccb, | 959 | GNUNET_PSYCSTORE_CountersCallback ccb, |
960 | void *mccb_cls) | 960 | void *mccb_cls) |
961 | { | 961 | { |
@@ -1001,7 +1001,7 @@ GNUNET_PSYCSTORE_counters_get (struct GNUNET_PSYCSTORE_Handle *h, | |||
1001 | */ | 1001 | */ |
1002 | struct GNUNET_PSYCSTORE_OperationHandle * | 1002 | struct GNUNET_PSYCSTORE_OperationHandle * |
1003 | GNUNET_PSYCSTORE_state_modify (struct GNUNET_PSYCSTORE_Handle *h, | 1003 | GNUNET_PSYCSTORE_state_modify (struct GNUNET_PSYCSTORE_Handle *h, |
1004 | const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key, | 1004 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, |
1005 | uint64_t message_id, | 1005 | uint64_t message_id, |
1006 | uint64_t state_delta, | 1006 | uint64_t state_delta, |
1007 | size_t modifier_count, | 1007 | size_t modifier_count, |
@@ -1070,7 +1070,7 @@ GNUNET_PSYCSTORE_state_modify (struct GNUNET_PSYCSTORE_Handle *h, | |||
1070 | */ | 1070 | */ |
1071 | struct GNUNET_PSYCSTORE_OperationHandle * | 1071 | struct GNUNET_PSYCSTORE_OperationHandle * |
1072 | GNUNET_PSYCSTORE_state_sync (struct GNUNET_PSYCSTORE_Handle *h, | 1072 | GNUNET_PSYCSTORE_state_sync (struct GNUNET_PSYCSTORE_Handle *h, |
1073 | const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key, | 1073 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, |
1074 | uint64_t message_id, | 1074 | uint64_t message_id, |
1075 | size_t modifier_count, | 1075 | size_t modifier_count, |
1076 | const struct GNUNET_ENV_Modifier *modifiers, | 1076 | const struct GNUNET_ENV_Modifier *modifiers, |
@@ -1132,7 +1132,7 @@ GNUNET_PSYCSTORE_state_sync (struct GNUNET_PSYCSTORE_Handle *h, | |||
1132 | */ | 1132 | */ |
1133 | struct GNUNET_PSYCSTORE_OperationHandle * | 1133 | struct GNUNET_PSYCSTORE_OperationHandle * |
1134 | GNUNET_PSYCSTORE_state_reset (struct GNUNET_PSYCSTORE_Handle *h, | 1134 | GNUNET_PSYCSTORE_state_reset (struct GNUNET_PSYCSTORE_Handle *h, |
1135 | const struct GNUNET_CRYPTO_EccPublicSignKey | 1135 | const struct GNUNET_CRYPTO_EddsaPublicKey |
1136 | *channel_key, | 1136 | *channel_key, |
1137 | GNUNET_PSYCSTORE_ResultCallback rcb, | 1137 | GNUNET_PSYCSTORE_ResultCallback rcb, |
1138 | void *rcb_cls) | 1138 | void *rcb_cls) |
@@ -1174,7 +1174,7 @@ GNUNET_PSYCSTORE_state_reset (struct GNUNET_PSYCSTORE_Handle *h, | |||
1174 | */ | 1174 | */ |
1175 | struct GNUNET_PSYCSTORE_OperationHandle * | 1175 | struct GNUNET_PSYCSTORE_OperationHandle * |
1176 | GNUNET_PSYCSTORE_state_hash_update (struct GNUNET_PSYCSTORE_Handle *h, | 1176 | GNUNET_PSYCSTORE_state_hash_update (struct GNUNET_PSYCSTORE_Handle *h, |
1177 | const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key, | 1177 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, |
1178 | uint64_t message_id, | 1178 | uint64_t message_id, |
1179 | const struct GNUNET_HashCode *hash, | 1179 | const struct GNUNET_HashCode *hash, |
1180 | GNUNET_PSYCSTORE_ResultCallback rcb, | 1180 | GNUNET_PSYCSTORE_ResultCallback rcb, |
@@ -1218,7 +1218,7 @@ GNUNET_PSYCSTORE_state_hash_update (struct GNUNET_PSYCSTORE_Handle *h, | |||
1218 | */ | 1218 | */ |
1219 | struct GNUNET_PSYCSTORE_OperationHandle * | 1219 | struct GNUNET_PSYCSTORE_OperationHandle * |
1220 | GNUNET_PSYCSTORE_state_get (struct GNUNET_PSYCSTORE_Handle *h, | 1220 | GNUNET_PSYCSTORE_state_get (struct GNUNET_PSYCSTORE_Handle *h, |
1221 | const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key, | 1221 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, |
1222 | const char *name, | 1222 | const char *name, |
1223 | GNUNET_PSYCSTORE_StateCallback scb, | 1223 | GNUNET_PSYCSTORE_StateCallback scb, |
1224 | GNUNET_PSYCSTORE_ResultCallback rcb, | 1224 | GNUNET_PSYCSTORE_ResultCallback rcb, |
@@ -1265,7 +1265,7 @@ GNUNET_PSYCSTORE_state_get (struct GNUNET_PSYCSTORE_Handle *h, | |||
1265 | */ | 1265 | */ |
1266 | struct GNUNET_PSYCSTORE_OperationHandle * | 1266 | struct GNUNET_PSYCSTORE_OperationHandle * |
1267 | GNUNET_PSYCSTORE_state_get_prefix (struct GNUNET_PSYCSTORE_Handle *h, | 1267 | GNUNET_PSYCSTORE_state_get_prefix (struct GNUNET_PSYCSTORE_Handle *h, |
1268 | const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key, | 1268 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, |
1269 | const char *name_prefix, | 1269 | const char *name_prefix, |
1270 | GNUNET_PSYCSTORE_StateCallback scb, | 1270 | GNUNET_PSYCSTORE_StateCallback scb, |
1271 | GNUNET_PSYCSTORE_ResultCallback rcb, | 1271 | GNUNET_PSYCSTORE_ResultCallback rcb, |