aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-13 12:00:01 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-13 12:00:01 +0000
commita35c5a11d32bdd0bc24f64de36fbc6b0d0b20aae (patch)
treeb7768c5cb22e8a4f84d51cbd06dc04861fdb8510 /src/include
parent95d42fdcb47eedcf2747614a22dacd676bc7faae (diff)
downloadgnunet-a35c5a11d32bdd0bc24f64de36fbc6b0d0b20aae.tar.gz
gnunet-a35c5a11d32bdd0bc24f64de36fbc6b0d0b20aae.zip
splitting 'struct GNUNET_CRYPTO_EccPublicKey' into one struct for signing and another for encryption
Diffstat (limited to 'src/include')
-rw-r--r--src/include/block_dns.h2
-rw-r--r--src/include/block_fs.h2
-rw-r--r--src/include/block_regex.h2
-rw-r--r--src/include/gnunet_crypto_lib.h111
-rw-r--r--src/include/gnunet_fs_service.h6
-rw-r--r--src/include/gnunet_gns_service.h2
-rw-r--r--src/include/gnunet_hello_lib.h6
-rw-r--r--src/include/gnunet_identity_service.h2
-rw-r--r--src/include/gnunet_multicast_service.h12
-rw-r--r--src/include/gnunet_namestore_plugin.h2
-rw-r--r--src/include/gnunet_namestore_service.h14
-rw-r--r--src/include/gnunet_psyc_service.h10
-rw-r--r--src/include/gnunet_psycstore_plugin.h36
-rw-r--r--src/include/gnunet_psycstore_service.h30
-rw-r--r--src/include/gnunet_social_service.h4
15 files changed, 153 insertions, 88 deletions
diff --git a/src/include/block_dns.h b/src/include/block_dns.h
index 198bba2c0..1af28af36 100644
--- a/src/include/block_dns.h
+++ b/src/include/block_dns.h
@@ -58,7 +58,7 @@ struct GNUNET_DNS_Record
58 /** 58 /**
59 * The peer providing this service 59 * The peer providing this service
60 */ 60 */
61 struct GNUNET_CRYPTO_EccPublicKey peer; 61 struct GNUNET_CRYPTO_EccPublicSignKey peer;
62 62
63 /** 63 /**
64 * The descriptor for the service 64 * The descriptor for the service
diff --git a/src/include/block_fs.h b/src/include/block_fs.h
index 772180fc8..3a0afba14 100644
--- a/src/include/block_fs.h
+++ b/src/include/block_fs.h
@@ -58,7 +58,7 @@ struct UBlock
58 /** 58 /**
59 * Public key used to sign this block. 59 * Public key used to sign this block.
60 */ 60 */
61 struct GNUNET_CRYPTO_EccPublicKey verification_key; 61 struct GNUNET_CRYPTO_EccPublicSignKey verification_key;
62 62
63 /* rest of the data is encrypted */ 63 /* rest of the data is encrypted */
64 64
diff --git a/src/include/block_regex.h b/src/include/block_regex.h
index 5995f70a2..85d450212 100644
--- a/src/include/block_regex.h
+++ b/src/include/block_regex.h
@@ -67,7 +67,7 @@ struct RegexAcceptBlock
67 /** 67 /**
68 * Public key of the peer signing. 68 * Public key of the peer signing.
69 */ 69 */
70 struct GNUNET_CRYPTO_EccPublicKey public_key; 70 struct GNUNET_CRYPTO_EccPublicSignKey public_key;
71 71
72 /** 72 /**
73 * The signature. 73 * The signature.
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index 033803978..6c4a65543 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -149,13 +149,15 @@ struct GNUNET_CRYPTO_EccSignature
149 149
150/** 150/**
151 * Public ECC key (always for NIST P-521) encoded in a format suitable 151 * Public ECC key (always for NIST P-521) encoded in a format suitable
152 * for network transmission. 152 * for network transmission and signatures (ECDSA/EdDSA).
153 */ 153 */
154struct GNUNET_CRYPTO_EccPublicKey 154struct GNUNET_CRYPTO_EccPublicSignKey
155{ 155{
156 /** 156 /**
157 * Q consists of an x- and a y-value, each mod p (256 bits), 157 * Q consists of an x- and a y-value, each mod p (256 bits),
158 * given here in affine coordinates. 158 * given here in affine coordinates.
159 *
160 * FIXME: this coordinate will be removed in the future (compressed point!).
159 */ 161 */
160 unsigned char q_x[256 / 8]; 162 unsigned char q_x[256 / 8];
161 163
@@ -169,6 +171,29 @@ struct GNUNET_CRYPTO_EccPublicKey
169 171
170 172
171/** 173/**
174 * Public ECC key (always for NIST P-521) encoded in a format suitable
175 * for network transmission and encryption (ECDH).
176 */
177struct GNUNET_CRYPTO_EccPublicEncryptKey
178{
179 /**
180 * Q consists of an x- and a y-value, each mod p (256 bits),
181 * given here in affine coordinates.
182 */
183 unsigned char q_x[256 / 8];
184
185 /**
186 * Q consists of an x- and a y-value, each mod p (256 bits),
187 * given here in affine coordinates.
188 *
189 * FIXME: this coordinate will be removed in the future (compressed point!).
190 */
191 unsigned char q_y[256 / 8];
192
193};
194
195
196/**
172 * Private ECC key encoded for transmission. 197 * Private ECC key encoded for transmission.
173 */ 198 */
174struct GNUNET_CRYPTO_EccPrivateKey 199struct GNUNET_CRYPTO_EccPrivateKey
@@ -415,11 +440,11 @@ GNUNET_CRYPTO_hash_from_string2 (const char *enc, size_t enclen,
415 440
416/** 441/**
417 * @ingroup hash 442 * @ingroup hash
418 * Convert ASCII encoding back to struct GNUNET_HashCode 443 * Convert ASCII encoding back to `struct GNUNET_HashCode`
419 * 444 *
420 * @param enc the encoding 445 * @param enc the encoding
421 * @param result where to store the hash code 446 * @param result where to store the hash code
422 * @return GNUNET_OK on success, GNUNET_SYSERR if result has the wrong encoding 447 * @return #GNUNET_OK on success, #GNUNET_SYSERR if result has the wrong encoding
423 */ 448 */
424#define GNUNET_CRYPTO_hash_from_string(enc, result) \ 449#define GNUNET_CRYPTO_hash_from_string(enc, result) \
425 GNUNET_CRYPTO_hash_from_string2 (enc, strlen(enc), result) 450 GNUNET_CRYPTO_hash_from_string2 (enc, strlen(enc), result)
@@ -495,7 +520,7 @@ struct GNUNET_CRYPTO_FileHashContext;
495 * @param filename name of file to hash 520 * @param filename name of file to hash
496 * @param blocksize number of bytes to process in one task 521 * @param blocksize number of bytes to process in one task
497 * @param callback function to call upon completion 522 * @param callback function to call upon completion
498 * @param callback_cls closure for callback 523 * @param callback_cls closure for @a callback
499 * @return NULL on (immediate) errror 524 * @return NULL on (immediate) errror
500 */ 525 */
501struct GNUNET_CRYPTO_FileHashContext * 526struct GNUNET_CRYPTO_FileHashContext *
@@ -586,12 +611,13 @@ GNUNET_CRYPTO_hash_to_aes_key (const struct GNUNET_HashCode * hc,
586 * @ingroup hash 611 * @ingroup hash
587 * Obtain a bit from a hashcode. 612 * Obtain a bit from a hashcode.
588 * 613 *
589 * @param code the GNUNET_CRYPTO_hash to index bit-wise 614 * @param code the `struct GNUNET_HashCode` to index bit-wise
590 * @param bit index into the hashcode, [0...159] 615 * @param bit index into the hashcode, [0...159]
591 * @return Bit \a bit from hashcode \a code, -1 for invalid index 616 * @return Bit \a bit from hashcode \a code, -1 for invalid index
592 */ 617 */
593int 618int
594GNUNET_CRYPTO_hash_get_bit (const struct GNUNET_HashCode * code, unsigned int bit); 619GNUNET_CRYPTO_hash_get_bit (const struct GNUNET_HashCode *code,
620 unsigned int bit);
595 621
596 622
597/** 623/**
@@ -738,7 +764,7 @@ GNUNET_CRYPTO_kdf_v (void *result, size_t out_len, const void *xts,
738 * @param skm source key material 764 * @param skm source key material
739 * @param skm_len length of skm 765 * @param skm_len length of skm
740 * @param ... void * & size_t pairs for context chunks 766 * @param ... void * & size_t pairs for context chunks
741 * @return GNUNET_YES on success 767 * @return #GNUNET_YES on success
742 */ 768 */
743int 769int
744GNUNET_CRYPTO_kdf (void *result, size_t out_len, const void *xts, 770GNUNET_CRYPTO_kdf (void *result, size_t out_len, const void *xts,
@@ -765,32 +791,70 @@ typedef void (*GNUNET_CRYPTO_EccKeyCallback)(void *cls,
765 * @param pub where to write the public key 791 * @param pub where to write the public key
766 */ 792 */
767void 793void
768GNUNET_CRYPTO_ecc_key_get_public (const struct GNUNET_CRYPTO_EccPrivateKey *priv, 794GNUNET_CRYPTO_ecc_key_get_public_for_signature (const struct GNUNET_CRYPTO_EccPrivateKey *priv,
769 struct GNUNET_CRYPTO_EccPublicKey *pub); 795 struct GNUNET_CRYPTO_EccPublicSignKey *pub);
796
797
798
799/**
800 * @ingroup crypto
801 * Extract the public key for the given private key.
802 *
803 * @param priv the private key
804 * @param pub where to write the public key
805 */
806void
807GNUNET_CRYPTO_ecc_key_get_public_for_encryption (const struct GNUNET_CRYPTO_EccPrivateKey *priv,
808 struct GNUNET_CRYPTO_EccPublicEncryptKey *pub);
770 809
771 810
772/** 811/**
773 * Convert a public key to a string. 812 * Convert a public key to a string.
774 * 813 *
775 * @param pub key to convert 814 * @param pub key to convert
776 * @return string representing 'pub' 815 * @return string representing @a pub
777 */ 816 */
778char * 817char *
779GNUNET_CRYPTO_ecc_public_key_to_string (const struct GNUNET_CRYPTO_EccPublicKey *pub); 818GNUNET_CRYPTO_ecc_public_sign_key_to_string (const struct GNUNET_CRYPTO_EccPublicSignKey *pub);
780 819
781 820
782/** 821/**
783 * Convert a string representing a public key to a public key. 822 * Convert a string representing a public key to a public key.
784 * 823 *
785 * @param enc encoded public key 824 * @param enc encoded public key
786 * @param enclen number of bytes in enc (without 0-terminator) 825 * @param enclen number of bytes in @a enc (without 0-terminator)
787 * @param pub where to store the public key 826 * @param pub where to store the public key
788 * @return GNUNET_OK on success 827 * @return #GNUNET_OK on success
789 */ 828 */
790int 829int
791GNUNET_CRYPTO_ecc_public_key_from_string (const char *enc, 830GNUNET_CRYPTO_ecc_public_sign_key_from_string (const char *enc,
792 size_t enclen, 831 size_t enclen,
793 struct GNUNET_CRYPTO_EccPublicKey *pub); 832 struct GNUNET_CRYPTO_EccPublicSignKey *pub);
833
834
835
836/**
837 * Convert a public key to a string.
838 *
839 * @param pub key to convert
840 * @return string representing @a pub
841 */
842char *
843GNUNET_CRYPTO_ecc_public_encrypt_key_to_string (const struct GNUNET_CRYPTO_EccPublicEncryptKey *pub);
844
845
846/**
847 * Convert a string representing a public key to a public key.
848 *
849 * @param enc encoded public key
850 * @param enclen number of bytes in @a enc (without 0-terminator)
851 * @param pub where to store the public key
852 * @return #GNUNET_OK on success
853 */
854int
855GNUNET_CRYPTO_ecc_public_encrypt_key_from_string (const char *enc,
856 size_t enclen,
857 struct GNUNET_CRYPTO_EccPublicEncryptKey *pub);
794 858
795 859
796/** 860/**
@@ -817,6 +881,7 @@ GNUNET_CRYPTO_ecc_key_create_from_file (const char *filename);
817 * Create a new private key by reading our peer's key from 881 * Create a new private key by reading our peer's key from
818 * the file specified in the configuration. 882 * the file specified in the configuration.
819 * 883 *
884 * @param cfg the configuration to use
820 * @return new private key, NULL on error (for example, 885 * @return new private key, NULL on error (for example,
821 * permission denied); free using #GNUNET_free 886 * permission denied); free using #GNUNET_free
822 */ 887 */
@@ -830,8 +895,8 @@ GNUNET_CRYPTO_ecc_key_create_from_configuration (const struct GNUNET_CONFIGURATI
830 * 895 *
831 * @return fresh private key; free using #GNUNET_free 896 * @return fresh private key; free using #GNUNET_free
832 */ 897 */
833struct GNUNET_CRYPTO_EccPrivateKey * 898struct GNUNET_CRYPTO_EccPrivateEncryptKey *
834GNUNET_CRYPTO_ecc_key_create (void); 899GNUNET_CRYPTO_ecc_key_encrypt_create (void);
835 900
836 901
837/** 902/**
@@ -882,7 +947,7 @@ GNUNET_CRYPTO_get_host_identity (const struct GNUNET_CONFIGURATION_Handle *cfg,
882 */ 947 */
883int 948int
884GNUNET_CRYPTO_ecc_ecdh (const struct GNUNET_CRYPTO_EccPrivateKey *priv, 949GNUNET_CRYPTO_ecc_ecdh (const struct GNUNET_CRYPTO_EccPrivateKey *priv,
885 const struct GNUNET_CRYPTO_EccPublicKey *pub, 950 const struct GNUNET_CRYPTO_EccPublicEncryptKey *pub,
886 struct GNUNET_HashCode *key_material); 951 struct GNUNET_HashCode *key_material);
887 952
888 953
@@ -916,7 +981,7 @@ GNUNET_CRYPTO_ecc_verify (uint32_t purpose,
916 const struct GNUNET_CRYPTO_EccSignaturePurpose 981 const struct GNUNET_CRYPTO_EccSignaturePurpose
917 *validate, 982 *validate,
918 const struct GNUNET_CRYPTO_EccSignature *sig, 983 const struct GNUNET_CRYPTO_EccSignature *sig,
919 const struct GNUNET_CRYPTO_EccPublicKey *pub); 984 const struct GNUNET_CRYPTO_EccPublicSignKey *pub);
920 985
921 986
922/** 987/**
@@ -950,10 +1015,10 @@ GNUNET_CRYPTO_ecc_key_derive (const struct GNUNET_CRYPTO_EccPrivateKey *priv,
950 * @param result where to write the derived public key 1015 * @param result where to write the derived public key
951 */ 1016 */
952void 1017void
953GNUNET_CRYPTO_ecc_public_key_derive (const struct GNUNET_CRYPTO_EccPublicKey *pub, 1018GNUNET_CRYPTO_ecc_public_key_derive (const struct GNUNET_CRYPTO_EccPublicSignKey *pub,
954 const char *label, 1019 const char *label,
955 const char *context, 1020 const char *context,
956 struct GNUNET_CRYPTO_EccPublicKey *result); 1021 struct GNUNET_CRYPTO_EccPublicSignKey *result);
957 1022
958 1023
959#if 0 /* keep Emacsens' auto-indent happy */ 1024#if 0 /* keep Emacsens' auto-indent happy */
diff --git a/src/include/gnunet_fs_service.h b/src/include/gnunet_fs_service.h
index 2987302a3..0f4b5ae25 100644
--- a/src/include/gnunet_fs_service.h
+++ b/src/include/gnunet_fs_service.h
@@ -336,7 +336,7 @@ GNUNET_FS_uri_test_sks (const struct GNUNET_FS_Uri *uri);
336 * @return an FS URI for the given namespace and identifier 336 * @return an FS URI for the given namespace and identifier
337 */ 337 */
338struct GNUNET_FS_Uri * 338struct GNUNET_FS_Uri *
339GNUNET_FS_uri_sks_create (const struct GNUNET_CRYPTO_EccPublicKey *ns, 339GNUNET_FS_uri_sks_create (const struct GNUNET_CRYPTO_EccPublicSignKey *ns,
340 const char *id); 340 const char *id);
341 341
342 342
@@ -350,7 +350,7 @@ GNUNET_FS_uri_sks_create (const struct GNUNET_CRYPTO_EccPublicKey *ns,
350 */ 350 */
351int 351int
352GNUNET_FS_uri_sks_get_namespace (const struct GNUNET_FS_Uri *uri, 352GNUNET_FS_uri_sks_get_namespace (const struct GNUNET_FS_Uri *uri,
353 struct GNUNET_CRYPTO_EccPublicKey *pseudonym); 353 struct GNUNET_CRYPTO_EccPublicSignKey *pseudonym);
354 354
355 355
356/** 356/**
@@ -1376,7 +1376,7 @@ struct GNUNET_FS_ProgressInfo
1376 /** 1376 /**
1377 * Public key of the namespace. 1377 * Public key of the namespace.
1378 */ 1378 */
1379 struct GNUNET_CRYPTO_EccPublicKey pseudonym; 1379 struct GNUNET_CRYPTO_EccPublicSignKey pseudonym;
1380 1380
1381 } ns; 1381 } ns;
1382 1382
diff --git a/src/include/gnunet_gns_service.h b/src/include/gnunet_gns_service.h
index 7f2bd790d..f16494c61 100644
--- a/src/include/gnunet_gns_service.h
+++ b/src/include/gnunet_gns_service.h
@@ -107,7 +107,7 @@ typedef void (*GNUNET_GNS_LookupResultProcessor) (void *cls,
107struct GNUNET_GNS_LookupRequest * 107struct GNUNET_GNS_LookupRequest *
108GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, 108GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle,
109 const char *name, 109 const char *name,
110 const struct GNUNET_CRYPTO_EccPublicKey *zone, 110 const struct GNUNET_CRYPTO_EccPublicSignKey *zone,
111 int type, 111 int type,
112 int only_cached, 112 int only_cached,
113 const struct GNUNET_CRYPTO_EccPrivateKey *shorten_zone_key, 113 const struct GNUNET_CRYPTO_EccPrivateKey *shorten_zone_key,
diff --git a/src/include/gnunet_hello_lib.h b/src/include/gnunet_hello_lib.h
index 583a33f7d..6ecf8754a 100644
--- a/src/include/gnunet_hello_lib.h
+++ b/src/include/gnunet_hello_lib.h
@@ -199,7 +199,7 @@ typedef size_t (*GNUNET_HELLO_GenerateAddressListCallback) (void *cls,
199 * @return the hello message 199 * @return the hello message
200 */ 200 */
201struct GNUNET_HELLO_Message * 201struct GNUNET_HELLO_Message *
202GNUNET_HELLO_create (const struct GNUNET_CRYPTO_EccPublicKey *publicKey, 202GNUNET_HELLO_create (const struct GNUNET_CRYPTO_EccPublicSignKey *publicKey,
203 GNUNET_HELLO_GenerateAddressListCallback addrgen, 203 GNUNET_HELLO_GenerateAddressListCallback addrgen,
204 void *addrgen_cls, 204 void *addrgen_cls,
205 int friend_only); 205 int friend_only);
@@ -326,7 +326,7 @@ GNUNET_HELLO_iterate_new_addresses (const struct GNUNET_HELLO_Message
326 */ 326 */
327int 327int
328GNUNET_HELLO_get_key (const struct GNUNET_HELLO_Message *hello, 328GNUNET_HELLO_get_key (const struct GNUNET_HELLO_Message *hello,
329 struct GNUNET_CRYPTO_EccPublicKey *publicKey); 329 struct GNUNET_CRYPTO_EccPublicSignKey *publicKey);
330 330
331 331
332/** 332/**
@@ -379,7 +379,7 @@ GNUNET_HELLO_compose_uri (const struct GNUNET_HELLO_Message *hello,
379 */ 379 */
380int 380int
381GNUNET_HELLO_parse_uri (const char *uri, 381GNUNET_HELLO_parse_uri (const char *uri,
382 struct GNUNET_CRYPTO_EccPublicKey *pubkey, 382 struct GNUNET_CRYPTO_EccPublicSignKey *pubkey,
383 struct GNUNET_HELLO_Message **hello, 383 struct GNUNET_HELLO_Message **hello,
384 GNUNET_HELLO_TransportPluginsFind plugins_find); 384 GNUNET_HELLO_TransportPluginsFind plugins_find);
385 385
diff --git a/src/include/gnunet_identity_service.h b/src/include/gnunet_identity_service.h
index 5cbe376f2..6c572e737 100644
--- a/src/include/gnunet_identity_service.h
+++ b/src/include/gnunet_identity_service.h
@@ -97,7 +97,7 @@ GNUNET_IDENTITY_ego_get_anonymous (void);
97 */ 97 */
98void 98void
99GNUNET_IDENTITY_ego_get_public_key (const struct GNUNET_IDENTITY_Ego *ego, 99GNUNET_IDENTITY_ego_get_public_key (const struct GNUNET_IDENTITY_Ego *ego,
100 struct GNUNET_CRYPTO_EccPublicKey *pk); 100 struct GNUNET_CRYPTO_EccPublicSignKey *pk);
101 101
102 102
103/** 103/**
diff --git a/src/include/gnunet_multicast_service.h b/src/include/gnunet_multicast_service.h
index 140e05e71..c25d15dc9 100644
--- a/src/include/gnunet_multicast_service.h
+++ b/src/include/gnunet_multicast_service.h
@@ -210,7 +210,7 @@ GNUNET_MULTICAST_join_decision (struct GNUNET_MULTICAST_JoinHandle *jh,
210 */ 210 */
211typedef void 211typedef void
212(*GNUNET_MULTICAST_JoinCallback) (void *cls, 212(*GNUNET_MULTICAST_JoinCallback) (void *cls,
213 const struct GNUNET_CRYPTO_EccPublicKey *member_key, 213 const struct GNUNET_CRYPTO_EccPublicSignKey *member_key,
214 const struct GNUNET_MessageHeader *join_req, 214 const struct GNUNET_MessageHeader *join_req,
215 struct GNUNET_MULTICAST_JoinHandle *jh); 215 struct GNUNET_MULTICAST_JoinHandle *jh);
216 216
@@ -249,7 +249,7 @@ GNUNET_MULTICAST_membership_test_result (struct GNUNET_MULTICAST_MembershipTestH
249 */ 249 */
250typedef void 250typedef void
251(*GNUNET_MULTICAST_MembershipTestCallback) (void *cls, 251(*GNUNET_MULTICAST_MembershipTestCallback) (void *cls,
252 const struct GNUNET_CRYPTO_EccPublicKey *member_key, 252 const struct GNUNET_CRYPTO_EccPublicSignKey *member_key,
253 uint64_t message_id, 253 uint64_t message_id,
254 uint64_t group_generation, 254 uint64_t group_generation,
255 struct GNUNET_MULTICAST_MembershipTestHandle *mth); 255 struct GNUNET_MULTICAST_MembershipTestHandle *mth);
@@ -266,7 +266,7 @@ typedef void
266 */ 266 */
267typedef void 267typedef void
268(*GNUNET_MULTICAST_RequestCallback) (void *cls, 268(*GNUNET_MULTICAST_RequestCallback) (void *cls,
269 const struct GNUNET_CRYPTO_EccPublicKey *member_key, 269 const struct GNUNET_CRYPTO_EccPublicSignKey *member_key,
270 const struct GNUNET_MessageHeader *req, 270 const struct GNUNET_MessageHeader *req,
271 enum GNUNET_MULTICAST_MessageFlags flags); 271 enum GNUNET_MULTICAST_MessageFlags flags);
272 272
@@ -324,7 +324,7 @@ struct GNUNET_MULTICAST_ReplayHandle;
324 */ 324 */
325typedef void 325typedef void
326(*GNUNET_MULTICAST_ReplayFragmentCallback) (void *cls, 326(*GNUNET_MULTICAST_ReplayFragmentCallback) (void *cls,
327 const struct GNUNET_CRYPTO_EccPublicKey *member_key, 327 const struct GNUNET_CRYPTO_EccPublicSignKey *member_key,
328 uint64_t fragment_id, 328 uint64_t fragment_id,
329 uint64_t flags, 329 uint64_t flags,
330 struct GNUNET_MULTICAST_ReplayHandle *rh); 330 struct GNUNET_MULTICAST_ReplayHandle *rh);
@@ -347,7 +347,7 @@ typedef void
347 */ 347 */
348typedef void 348typedef void
349(*GNUNET_MULTICAST_ReplayMessageCallback) (void *cls, 349(*GNUNET_MULTICAST_ReplayMessageCallback) (void *cls,
350 const struct GNUNET_CRYPTO_EccPublicKey *member_key, 350 const struct GNUNET_CRYPTO_EccPublicSignKey *member_key,
351 uint64_t message_id, 351 uint64_t message_id,
352 uint64_t fragment_offset, 352 uint64_t fragment_offset,
353 uint64_t flags, 353 uint64_t flags,
@@ -586,7 +586,7 @@ GNUNET_MULTICAST_origin_stop (struct GNUNET_MULTICAST_Origin *origin);
586 */ 586 */
587struct GNUNET_MULTICAST_Member * 587struct GNUNET_MULTICAST_Member *
588GNUNET_MULTICAST_member_join (const struct GNUNET_CONFIGURATION_Handle *cfg, 588GNUNET_MULTICAST_member_join (const struct GNUNET_CONFIGURATION_Handle *cfg,
589 const struct GNUNET_CRYPTO_EccPublicKey *group_key, 589 const struct GNUNET_CRYPTO_EccPublicSignKey *group_key,
590 const struct GNUNET_CRYPTO_EccPrivateKey *member_key, 590 const struct GNUNET_CRYPTO_EccPrivateKey *member_key,
591 const struct GNUNET_PeerIdentity *origin, 591 const struct GNUNET_PeerIdentity *origin,
592 size_t relay_count, 592 size_t relay_count,
diff --git a/src/include/gnunet_namestore_plugin.h b/src/include/gnunet_namestore_plugin.h
index 8ea1a9d73..512e463a8 100644
--- a/src/include/gnunet_namestore_plugin.h
+++ b/src/include/gnunet_namestore_plugin.h
@@ -152,7 +152,7 @@ struct GNUNET_NAMESTORE_PluginFunctions
152 */ 152 */
153 int (*zone_to_name) (void *cls, 153 int (*zone_to_name) (void *cls,
154 const struct GNUNET_CRYPTO_EccPrivateKey *zone, 154 const struct GNUNET_CRYPTO_EccPrivateKey *zone,
155 const struct GNUNET_CRYPTO_EccPublicKey *value_zone, 155 const struct GNUNET_CRYPTO_EccPublicSignKey *value_zone,
156 GNUNET_NAMESTORE_RecordIterator iter, void *iter_cls); 156 GNUNET_NAMESTORE_RecordIterator iter, void *iter_cls);
157 157
158 158
diff --git a/src/include/gnunet_namestore_service.h b/src/include/gnunet_namestore_service.h
index 4cad3ae62..ab539bb35 100644
--- a/src/include/gnunet_namestore_service.h
+++ b/src/include/gnunet_namestore_service.h
@@ -237,7 +237,7 @@ struct GNUNET_NAMESTORE_Block
237 /** 237 /**
238 * Derived key used for signing; hash of this is the query. 238 * Derived key used for signing; hash of this is the query.
239 */ 239 */
240 struct GNUNET_CRYPTO_EccPublicKey derived_key; 240 struct GNUNET_CRYPTO_EccPublicSignKey derived_key;
241 241
242 /** 242 /**
243 * Number of bytes signed; also specifies the number of bytes 243 * Number of bytes signed; also specifies the number of bytes
@@ -355,7 +355,7 @@ typedef void (*GNUNET_NAMESTORE_RecordMonitor) (void *cls,
355struct GNUNET_NAMESTORE_QueueEntry * 355struct GNUNET_NAMESTORE_QueueEntry *
356GNUNET_NAMESTORE_zone_to_name (struct GNUNET_NAMESTORE_Handle *h, 356GNUNET_NAMESTORE_zone_to_name (struct GNUNET_NAMESTORE_Handle *h,
357 const struct GNUNET_CRYPTO_EccPrivateKey *zone, 357 const struct GNUNET_CRYPTO_EccPrivateKey *zone,
358 const struct GNUNET_CRYPTO_EccPublicKey *value_zone, 358 const struct GNUNET_CRYPTO_EccPublicSignKey *value_zone,
359 GNUNET_NAMESTORE_RecordMonitor proc, void *proc_cls); 359 GNUNET_NAMESTORE_RecordMonitor proc, void *proc_cls);
360 360
361 361
@@ -604,7 +604,7 @@ GNUNET_NAMESTORE_normalize_string (const char *src);
604 * @return string form; will be overwritten by next call to #GNUNET_NAMESTORE_z2s. 604 * @return string form; will be overwritten by next call to #GNUNET_NAMESTORE_z2s.
605 */ 605 */
606const char * 606const char *
607GNUNET_NAMESTORE_z2s (const struct GNUNET_CRYPTO_EccPublicKey *z); 607GNUNET_NAMESTORE_z2s (const struct GNUNET_CRYPTO_EccPublicSignKey *z);
608 608
609 609
610/** 610/**
@@ -618,7 +618,7 @@ GNUNET_NAMESTORE_z2s (const struct GNUNET_CRYPTO_EccPublicKey *z);
618 * key in an encoding suitable for DNS labels. 618 * key in an encoding suitable for DNS labels.
619 */ 619 */
620const char * 620const char *
621GNUNET_NAMESTORE_pkey_to_zkey (const struct GNUNET_CRYPTO_EccPublicKey *pkey); 621GNUNET_NAMESTORE_pkey_to_zkey (const struct GNUNET_CRYPTO_EccPublicSignKey *pkey);
622 622
623 623
624/** 624/**
@@ -632,7 +632,7 @@ GNUNET_NAMESTORE_pkey_to_zkey (const struct GNUNET_CRYPTO_EccPublicKey *pkey);
632 */ 632 */
633int 633int
634GNUNET_NAMESTORE_zkey_to_pkey (const char *zkey, 634GNUNET_NAMESTORE_zkey_to_pkey (const char *zkey,
635 struct GNUNET_CRYPTO_EccPublicKey *pkey); 635 struct GNUNET_CRYPTO_EccPublicSignKey *pkey);
636 636
637 637
638/** 638/**
@@ -656,7 +656,7 @@ GNUNET_NAMESTORE_query_from_private_key (const struct GNUNET_CRYPTO_EccPrivateKe
656 * @param query hash to use for the query 656 * @param query hash to use for the query
657 */ 657 */
658void 658void
659GNUNET_NAMESTORE_query_from_public_key (const struct GNUNET_CRYPTO_EccPublicKey *pub, 659GNUNET_NAMESTORE_query_from_public_key (const struct GNUNET_CRYPTO_EccPublicSignKey *pub,
660 const char *label, 660 const char *label,
661 struct GNUNET_HashCode *query); 661 struct GNUNET_HashCode *query);
662 662
@@ -702,7 +702,7 @@ GNUNET_NAMESTORE_block_verify (const struct GNUNET_NAMESTORE_Block *block);
702 */ 702 */
703int 703int
704GNUNET_NAMESTORE_block_decrypt (const struct GNUNET_NAMESTORE_Block *block, 704GNUNET_NAMESTORE_block_decrypt (const struct GNUNET_NAMESTORE_Block *block,
705 const struct GNUNET_CRYPTO_EccPublicKey *zone_key, 705 const struct GNUNET_CRYPTO_EccPublicSignKey *zone_key,
706 const char *label, 706 const char *label,
707 GNUNET_NAMESTORE_RecordCallback proc, 707 GNUNET_NAMESTORE_RecordCallback proc,
708 void *proc_cls); 708 void *proc_cls);
diff --git a/src/include/gnunet_psyc_service.h b/src/include/gnunet_psyc_service.h
index df7a6b4d9..c86e5048b 100644
--- a/src/include/gnunet_psyc_service.h
+++ b/src/include/gnunet_psyc_service.h
@@ -215,7 +215,7 @@ struct GNUNET_PSYC_JoinHandle;
215 */ 215 */
216typedef int 216typedef int
217(*GNUNET_PSYC_Method) (void *cls, 217(*GNUNET_PSYC_Method) (void *cls,
218 const struct GNUNET_CRYPTO_EccPublicKey *slave_key, 218 const struct GNUNET_CRYPTO_EccPublicSignKey *slave_key,
219 uint64_t message_id, 219 uint64_t message_id,
220 const char *method_name, 220 const char *method_name,
221 size_t modifier_count, 221 size_t modifier_count,
@@ -241,7 +241,7 @@ typedef int
241 */ 241 */
242typedef int 242typedef int
243(*GNUNET_PSYC_JoinCallback) (void *cls, 243(*GNUNET_PSYC_JoinCallback) (void *cls,
244 const struct GNUNET_CRYPTO_EccPublicKey *slave_key, 244 const struct GNUNET_CRYPTO_EccPublicSignKey *slave_key,
245 const char *method_name, 245 const char *method_name,
246 size_t variable_count, 246 size_t variable_count,
247 const struct GNUNET_ENV_Modifier *variables, 247 const struct GNUNET_ENV_Modifier *variables,
@@ -456,7 +456,7 @@ struct GNUNET_PSYC_Slave;
456 */ 456 */
457struct GNUNET_PSYC_Slave * 457struct GNUNET_PSYC_Slave *
458GNUNET_PSYC_slave_join (const struct GNUNET_CONFIGURATION_Handle *cfg, 458GNUNET_PSYC_slave_join (const struct GNUNET_CONFIGURATION_Handle *cfg,
459 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 459 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
460 const struct GNUNET_CRYPTO_EccPrivateKey *slave_key, 460 const struct GNUNET_CRYPTO_EccPrivateKey *slave_key,
461 const struct GNUNET_PeerIdentity *origin, 461 const struct GNUNET_PeerIdentity *origin,
462 size_t relay_count, 462 size_t relay_count,
@@ -593,7 +593,7 @@ GNUNET_PSYC_slave_get_channel (struct GNUNET_PSYC_Slave *slave);
593 */ 593 */
594void 594void
595GNUNET_PSYC_channel_slave_add (struct GNUNET_PSYC_Channel *channel, 595GNUNET_PSYC_channel_slave_add (struct GNUNET_PSYC_Channel *channel,
596 const struct GNUNET_CRYPTO_EccPublicKey *slave_key, 596 const struct GNUNET_CRYPTO_EccPublicSignKey *slave_key,
597 uint64_t announced_at, 597 uint64_t announced_at,
598 uint64_t effective_since); 598 uint64_t effective_since);
599 599
@@ -621,7 +621,7 @@ GNUNET_PSYC_channel_slave_add (struct GNUNET_PSYC_Channel *channel,
621 */ 621 */
622void 622void
623GNUNET_PSYC_channel_slave_remove (struct GNUNET_PSYC_Channel *channel, 623GNUNET_PSYC_channel_slave_remove (struct GNUNET_PSYC_Channel *channel,
624 const struct GNUNET_CRYPTO_EccPublicKey *slave_key, 624 const struct GNUNET_CRYPTO_EccPublicSignKey *slave_key,
625 uint64_t announced_at); 625 uint64_t announced_at);
626 626
627 627
diff --git a/src/include/gnunet_psycstore_plugin.h b/src/include/gnunet_psycstore_plugin.h
index 00928d2b7..6852a6dd5 100644
--- a/src/include/gnunet_psycstore_plugin.h
+++ b/src/include/gnunet_psycstore_plugin.h
@@ -60,8 +60,8 @@ struct GNUNET_PSYCSTORE_PluginFunctions
60 */ 60 */
61 int 61 int
62 (*membership_store) (void *cls, 62 (*membership_store) (void *cls,
63 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 63 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
64 const struct GNUNET_CRYPTO_EccPublicKey *slave_key, 64 const struct GNUNET_CRYPTO_EccPublicSignKey *slave_key,
65 int did_join, 65 int did_join,
66 uint64_t announced_at, 66 uint64_t announced_at,
67 uint64_t effective_since, 67 uint64_t effective_since,
@@ -77,8 +77,8 @@ struct GNUNET_PSYCSTORE_PluginFunctions
77 */ 77 */
78 int 78 int
79 (*membership_test) (void *cls, 79 (*membership_test) (void *cls,
80 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 80 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
81 const struct GNUNET_CRYPTO_EccPublicKey *slave_key, 81 const struct GNUNET_CRYPTO_EccPublicSignKey *slave_key,
82 uint64_t message_id); 82 uint64_t message_id);
83 83
84 /** 84 /**
@@ -90,7 +90,7 @@ struct GNUNET_PSYCSTORE_PluginFunctions
90 */ 90 */
91 int 91 int
92 (*fragment_store) (void *cls, 92 (*fragment_store) (void *cls,
93 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 93 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
94 const struct GNUNET_MULTICAST_MessageHeader *message, 94 const struct GNUNET_MULTICAST_MessageHeader *message,
95 uint32_t psycstore_flags); 95 uint32_t psycstore_flags);
96 96
@@ -108,7 +108,7 @@ struct GNUNET_PSYCSTORE_PluginFunctions
108 */ 108 */
109 int 109 int
110 (*message_add_flags) (void *cls, 110 (*message_add_flags) (void *cls,
111 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 111 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
112 uint64_t message_id, 112 uint64_t message_id,
113 uint64_t psycstore_flags); 113 uint64_t psycstore_flags);
114 114
@@ -121,7 +121,7 @@ struct GNUNET_PSYCSTORE_PluginFunctions
121 */ 121 */
122 int 122 int
123 (*fragment_get) (void *cls, 123 (*fragment_get) (void *cls,
124 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 124 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
125 uint64_t fragment_id, 125 uint64_t fragment_id,
126 GNUNET_PSYCSTORE_FragmentCallback cb, 126 GNUNET_PSYCSTORE_FragmentCallback cb,
127 void *cb_cls); 127 void *cb_cls);
@@ -135,7 +135,7 @@ struct GNUNET_PSYCSTORE_PluginFunctions
135 */ 135 */
136 int 136 int
137 (*message_get) (void *cls, 137 (*message_get) (void *cls,
138 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 138 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
139 uint64_t message_id, 139 uint64_t message_id,
140 GNUNET_PSYCSTORE_FragmentCallback cb, 140 GNUNET_PSYCSTORE_FragmentCallback cb,
141 void *cb_cls); 141 void *cb_cls);
@@ -150,7 +150,7 @@ struct GNUNET_PSYCSTORE_PluginFunctions
150 */ 150 */
151 int 151 int
152 (*message_get_fragment) (void *cls, 152 (*message_get_fragment) (void *cls,
153 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 153 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
154 uint64_t message_id, 154 uint64_t message_id,
155 uint64_t fragment_offset, 155 uint64_t fragment_offset,
156 GNUNET_PSYCSTORE_FragmentCallback cb, 156 GNUNET_PSYCSTORE_FragmentCallback cb,
@@ -165,7 +165,7 @@ struct GNUNET_PSYCSTORE_PluginFunctions
165 */ 165 */
166 int 166 int
167 (*counters_get_master) (void *cls, 167 (*counters_get_master) (void *cls,
168 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 168 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
169 uint64_t *fragment_id, 169 uint64_t *fragment_id,
170 uint64_t *message_id, 170 uint64_t *message_id,
171 uint64_t *group_generation); 171 uint64_t *group_generation);
@@ -179,7 +179,7 @@ struct GNUNET_PSYCSTORE_PluginFunctions
179 */ 179 */
180 int 180 int
181 (*counters_get_slave) (void *cls, 181 (*counters_get_slave) (void *cls,
182 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 182 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
183 uint64_t *max_state_msg_id); 183 uint64_t *max_state_msg_id);
184 184
185 /** 185 /**
@@ -191,7 +191,7 @@ struct GNUNET_PSYCSTORE_PluginFunctions
191 */ 191 */
192 int 192 int
193 (*state_set) (void *cls, 193 (*state_set) (void *cls,
194 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 194 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
195 const char *name, 195 const char *name,
196 const void *value, 196 const void *value,
197 size_t value_size); 197 size_t value_size);
@@ -208,7 +208,7 @@ struct GNUNET_PSYCSTORE_PluginFunctions
208 */ 208 */
209 int 209 int
210 (*state_reset) (void *cls, 210 (*state_reset) (void *cls,
211 const struct GNUNET_CRYPTO_EccPublicKey *channel_key); 211 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key);
212 212
213 /** 213 /**
214 * Update signed state values from the current ones. 214 * Update signed state values from the current ones.
@@ -217,7 +217,7 @@ struct GNUNET_PSYCSTORE_PluginFunctions
217 */ 217 */
218 int 218 int
219 (*state_update_signed) (void *cls, 219 (*state_update_signed) (void *cls,
220 const struct GNUNET_CRYPTO_EccPublicKey *channel_key); 220 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key);
221 221
222 /** 222 /**
223 * Update signed values of state variables in the state store. 223 * Update signed values of state variables in the state store.
@@ -233,7 +233,7 @@ struct GNUNET_PSYCSTORE_PluginFunctions
233 */ 233 */
234 int 234 int
235 (*state_hash_update) (void *cls, 235 (*state_hash_update) (void *cls,
236 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 236 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
237 uint64_t message_id, 237 uint64_t message_id,
238 const struct GNUNET_HashCode *hash, 238 const struct GNUNET_HashCode *hash,
239 GNUNET_PSYCSTORE_ResultCallback rcb, 239 GNUNET_PSYCSTORE_ResultCallback rcb,
@@ -246,7 +246,7 @@ struct GNUNET_PSYCSTORE_PluginFunctions
246 */ 246 */
247 int 247 int
248 (*state_get) (void *cls, 248 (*state_get) (void *cls,
249 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 249 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
250 const char *name, 250 const char *name,
251 GNUNET_PSYCSTORE_StateCallback cb, 251 GNUNET_PSYCSTORE_StateCallback cb,
252 void *cb_cls); 252 void *cb_cls);
@@ -260,7 +260,7 @@ struct GNUNET_PSYCSTORE_PluginFunctions
260 */ 260 */
261 int 261 int
262 (*state_get_all) (void *cls, 262 (*state_get_all) (void *cls,
263 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 263 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
264 const char *name, 264 const char *name,
265 GNUNET_PSYCSTORE_StateCallback cb, 265 GNUNET_PSYCSTORE_StateCallback cb,
266 void *cb_cls); 266 void *cb_cls);
@@ -273,7 +273,7 @@ struct GNUNET_PSYCSTORE_PluginFunctions
273 */ 273 */
274 int 274 int
275 (*state_get_signed) (void *cls, 275 (*state_get_signed) (void *cls,
276 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 276 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
277 GNUNET_PSYCSTORE_StateCallback cb, 277 GNUNET_PSYCSTORE_StateCallback cb,
278 void *cb_cls); 278 void *cb_cls);
279 279
diff --git a/src/include/gnunet_psycstore_service.h b/src/include/gnunet_psycstore_service.h
index fab2594df..4f8c6c6c0 100644
--- a/src/include/gnunet_psycstore_service.h
+++ b/src/include/gnunet_psycstore_service.h
@@ -133,8 +133,8 @@ typedef void
133 */ 133 */
134struct GNUNET_PSYCSTORE_OperationHandle * 134struct GNUNET_PSYCSTORE_OperationHandle *
135GNUNET_PSYCSTORE_membership_store (struct GNUNET_PSYCSTORE_Handle *h, 135GNUNET_PSYCSTORE_membership_store (struct GNUNET_PSYCSTORE_Handle *h,
136 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 136 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
137 const struct GNUNET_CRYPTO_EccPublicKey *slave_key, 137 const struct GNUNET_CRYPTO_EccPublicSignKey *slave_key,
138 int did_join, 138 int did_join,
139 uint64_t announced_at, 139 uint64_t announced_at,
140 uint64_t effective_since, 140 uint64_t effective_since,
@@ -165,8 +165,8 @@ GNUNET_PSYCSTORE_membership_store (struct GNUNET_PSYCSTORE_Handle *h,
165 */ 165 */
166struct GNUNET_PSYCSTORE_OperationHandle * 166struct GNUNET_PSYCSTORE_OperationHandle *
167GNUNET_PSYCSTORE_membership_test (struct GNUNET_PSYCSTORE_Handle *h, 167GNUNET_PSYCSTORE_membership_test (struct GNUNET_PSYCSTORE_Handle *h,
168 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 168 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
169 const struct GNUNET_CRYPTO_EccPublicKey *slave_key, 169 const struct GNUNET_CRYPTO_EccPublicSignKey *slave_key,
170 uint64_t message_id, 170 uint64_t message_id,
171 uint64_t group_generation, 171 uint64_t group_generation,
172 GNUNET_PSYCSTORE_ResultCallback rcb, 172 GNUNET_PSYCSTORE_ResultCallback rcb,
@@ -188,7 +188,7 @@ GNUNET_PSYCSTORE_membership_test (struct GNUNET_PSYCSTORE_Handle *h,
188 */ 188 */
189struct GNUNET_PSYCSTORE_OperationHandle * 189struct GNUNET_PSYCSTORE_OperationHandle *
190GNUNET_PSYCSTORE_fragment_store (struct GNUNET_PSYCSTORE_Handle *h, 190GNUNET_PSYCSTORE_fragment_store (struct GNUNET_PSYCSTORE_Handle *h,
191 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 191 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
192 const struct GNUNET_MULTICAST_MessageHeader *message, 192 const struct GNUNET_MULTICAST_MessageHeader *message,
193 uint32_t psycstore_flags, 193 uint32_t psycstore_flags,
194 GNUNET_PSYCSTORE_ResultCallback rcb, 194 GNUNET_PSYCSTORE_ResultCallback rcb,
@@ -226,7 +226,7 @@ typedef int
226 */ 226 */
227struct GNUNET_PSYCSTORE_OperationHandle * 227struct GNUNET_PSYCSTORE_OperationHandle *
228GNUNET_PSYCSTORE_fragment_get (struct GNUNET_PSYCSTORE_Handle *h, 228GNUNET_PSYCSTORE_fragment_get (struct GNUNET_PSYCSTORE_Handle *h,
229 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 229 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
230 uint64_t fragment_id, 230 uint64_t fragment_id,
231 GNUNET_PSYCSTORE_FragmentCallback cb, 231 GNUNET_PSYCSTORE_FragmentCallback cb,
232 void *cb_cls); 232 void *cb_cls);
@@ -245,7 +245,7 @@ GNUNET_PSYCSTORE_fragment_get (struct GNUNET_PSYCSTORE_Handle *h,
245 */ 245 */
246struct GNUNET_PSYCSTORE_OperationHandle * 246struct GNUNET_PSYCSTORE_OperationHandle *
247GNUNET_PSYCSTORE_message_get (struct GNUNET_PSYCSTORE_Handle *h, 247GNUNET_PSYCSTORE_message_get (struct GNUNET_PSYCSTORE_Handle *h,
248 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 248 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
249 uint64_t message_id, 249 uint64_t message_id,
250 GNUNET_PSYCSTORE_FragmentCallback cb, 250 GNUNET_PSYCSTORE_FragmentCallback cb,
251 void *cb_cls); 251 void *cb_cls);
@@ -266,7 +266,7 @@ GNUNET_PSYCSTORE_message_get (struct GNUNET_PSYCSTORE_Handle *h,
266 */ 266 */
267struct GNUNET_PSYCSTORE_OperationHandle * 267struct GNUNET_PSYCSTORE_OperationHandle *
268GNUNET_PSYCSTORE_message_get_fragment (struct GNUNET_PSYCSTORE_Handle *h, 268GNUNET_PSYCSTORE_message_get_fragment (struct GNUNET_PSYCSTORE_Handle *h,
269 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 269 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
270 uint64_t message_id, 270 uint64_t message_id,
271 uint64_t fragment_offset, 271 uint64_t fragment_offset,
272 GNUNET_PSYCSTORE_FragmentCallback cb, 272 GNUNET_PSYCSTORE_FragmentCallback cb,
@@ -319,7 +319,7 @@ typedef void
319 */ 319 */
320struct GNUNET_PSYCSTORE_OperationHandle * 320struct GNUNET_PSYCSTORE_OperationHandle *
321GNUNET_PSYCSTORE_counters_get_master (struct GNUNET_PSYCSTORE_Handle *h, 321GNUNET_PSYCSTORE_counters_get_master (struct GNUNET_PSYCSTORE_Handle *h,
322 struct GNUNET_CRYPTO_EccPublicKey *channel_key, 322 struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
323 GNUNET_PSYCSTORE_MasterCountersCallback *cb, 323 GNUNET_PSYCSTORE_MasterCountersCallback *cb,
324 void *cb_cls); 324 void *cb_cls);
325 325
@@ -339,7 +339,7 @@ GNUNET_PSYCSTORE_counters_get_master (struct GNUNET_PSYCSTORE_Handle *h,
339 */ 339 */
340struct GNUNET_PSYCSTORE_OperationHandle * 340struct GNUNET_PSYCSTORE_OperationHandle *
341GNUNET_PSYCSTORE_counters_get_slave (struct GNUNET_PSYCSTORE_Handle *h, 341GNUNET_PSYCSTORE_counters_get_slave (struct GNUNET_PSYCSTORE_Handle *h,
342 struct GNUNET_CRYPTO_EccPublicKey *channel_key, 342 struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
343 GNUNET_PSYCSTORE_SlaveCountersCallback *cb, 343 GNUNET_PSYCSTORE_SlaveCountersCallback *cb,
344 void *cb_cls); 344 void *cb_cls);
345 345
@@ -363,7 +363,7 @@ GNUNET_PSYCSTORE_counters_get_slave (struct GNUNET_PSYCSTORE_Handle *h,
363 */ 363 */
364struct GNUNET_PSYCSTORE_OperationHandle * 364struct GNUNET_PSYCSTORE_OperationHandle *
365GNUNET_PSYCSTORE_state_modify (struct GNUNET_PSYCSTORE_Handle *h, 365GNUNET_PSYCSTORE_state_modify (struct GNUNET_PSYCSTORE_Handle *h,
366 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 366 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
367 uint64_t message_id, 367 uint64_t message_id,
368 uint64_t state_delta, 368 uint64_t state_delta,
369 size_t modifier_count, 369 size_t modifier_count,
@@ -386,7 +386,7 @@ GNUNET_PSYCSTORE_state_modify (struct GNUNET_PSYCSTORE_Handle *h,
386 */ 386 */
387struct GNUNET_PSYCSTORE_Handle * 387struct GNUNET_PSYCSTORE_Handle *
388GNUNET_PSYCSTORE_state_reset (struct GNUNET_PSYCSTORE_Handle *h, 388GNUNET_PSYCSTORE_state_reset (struct GNUNET_PSYCSTORE_Handle *h,
389 const struct GNUNET_CRYPTO_EccPublicKey 389 const struct GNUNET_CRYPTO_EccPublicSignKey
390 *channel_key, 390 *channel_key,
391 GNUNET_PSYCSTORE_ResultCallback rcb, 391 GNUNET_PSYCSTORE_ResultCallback rcb,
392 void *rcb_cls); 392 void *rcb_cls);
@@ -405,7 +405,7 @@ GNUNET_PSYCSTORE_state_reset (struct GNUNET_PSYCSTORE_Handle *h,
405 */ 405 */
406struct GNUNET_PSYCSTORE_OperationHandle * 406struct GNUNET_PSYCSTORE_OperationHandle *
407GNUNET_PSYCSTORE_state_hash_update (struct GNUNET_PSYCSTORE_Handle *h, 407GNUNET_PSYCSTORE_state_hash_update (struct GNUNET_PSYCSTORE_Handle *h,
408 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 408 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
409 uint64_t message_id, 409 uint64_t message_id,
410 const struct GNUNET_HashCode *hash, 410 const struct GNUNET_HashCode *hash,
411 GNUNET_PSYCSTORE_ResultCallback rcb, 411 GNUNET_PSYCSTORE_ResultCallback rcb,
@@ -444,7 +444,7 @@ typedef int
444 */ 444 */
445struct GNUNET_PSYCSTORE_OperationHandle * 445struct GNUNET_PSYCSTORE_OperationHandle *
446GNUNET_PSYCSTORE_state_get (struct GNUNET_PSYCSTORE_Handle *h, 446GNUNET_PSYCSTORE_state_get (struct GNUNET_PSYCSTORE_Handle *h,
447 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 447 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
448 const char *name, 448 const char *name,
449 GNUNET_PSYCSTORE_StateCallback cb, 449 GNUNET_PSYCSTORE_StateCallback cb,
450 void *cb_cls); 450 void *cb_cls);
@@ -463,7 +463,7 @@ GNUNET_PSYCSTORE_state_get (struct GNUNET_PSYCSTORE_Handle *h,
463 */ 463 */
464struct GNUNET_PSYCSTORE_OperationHandle * 464struct GNUNET_PSYCSTORE_OperationHandle *
465GNUNET_PSYCSTORE_state_get_all (struct GNUNET_PSYCSTORE_Handle *h, 465GNUNET_PSYCSTORE_state_get_all (struct GNUNET_PSYCSTORE_Handle *h,
466 const struct GNUNET_CRYPTO_EccPublicKey *channel_key, 466 const struct GNUNET_CRYPTO_EccPublicSignKey *channel_key,
467 const char *name_prefix, 467 const char *name_prefix,
468 GNUNET_PSYCSTORE_StateCallback cb, 468 GNUNET_PSYCSTORE_StateCallback cb,
469 void *cb_cls); 469 void *cb_cls);
diff --git a/src/include/gnunet_social_service.h b/src/include/gnunet_social_service.h
index 62a221de2..f53a2c28b 100644
--- a/src/include/gnunet_social_service.h
+++ b/src/include/gnunet_social_service.h
@@ -283,7 +283,7 @@ GNUNET_SOCIAL_home_reject_entry (struct GNUNET_SOCIAL_Home *home,
283 */ 283 */
284void 284void
285GNUNET_SOCIAL_nym_get_key (struct GNUNET_SOCIAL_Nym *nym, 285GNUNET_SOCIAL_nym_get_key (struct GNUNET_SOCIAL_Nym *nym,
286 struct GNUNET_CRYPTO_EccPublicKey *nym_key); 286 struct GNUNET_CRYPTO_EccPublicSignKey *nym_key);
287 287
288 288
289/** 289/**
@@ -440,7 +440,7 @@ GNUNET_SOCIAL_place_enter (const struct GNUNET_CONFIGURATION_Handle *cfg,
440struct GNUNET_SOCIAL_Place * 440struct GNUNET_SOCIAL_Place *
441GNUNET_SOCIAL_place_enter2 (const struct GNUNET_CONFIGURATION_Handle *cfg, 441GNUNET_SOCIAL_place_enter2 (const struct GNUNET_CONFIGURATION_Handle *cfg,
442 struct GNUNET_IDENTITY_Ego *ego, 442 struct GNUNET_IDENTITY_Ego *ego,
443 struct GNUNET_CRYPTO_EccPublicKey *crypto_address, 443 struct GNUNET_CRYPTO_EccPublicSignKey *crypto_address,
444 struct GNUNET_PeerIdentity *origin, 444 struct GNUNET_PeerIdentity *origin,
445 size_t relay_count, 445 size_t relay_count,
446 struct GNUNET_PeerIdentity *relays, 446 struct GNUNET_PeerIdentity *relays,