aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_abd_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_abd_service.h')
-rw-r--r--src/include/gnunet_abd_service.h38
1 files changed, 22 insertions, 16 deletions
diff --git a/src/include/gnunet_abd_service.h b/src/include/gnunet_abd_service.h
index 21f668a8d..cb6e77256 100644
--- a/src/include/gnunet_abd_service.h
+++ b/src/include/gnunet_abd_service.h
@@ -19,19 +19,23 @@
19 */ 19 */
20 20
21/** 21/**
22 * @addtogroup reclaim_suite
23 * @{
24 *
22 * @author Martin Schanzenbach 25 * @author Martin Schanzenbach
23 * 26 *
24 * @file 27 * @file
25 * API to the Credential service 28 * API to the Credential service
26 * 29 *
27 * @defgroup abd Credential service 30 * @defgroup abd Credential service
28 * Credentials 31 * Credential service for Attribute-Based Decryption
29 * 32 *
30 * @{ 33 * @{
31 */ 34 */
32#ifndef GNUNET_ABD_SERVICE_H 35#ifndef GNUNET_ABD_SERVICE_H
33#define GNUNET_ABD_SERVICE_H 36#define GNUNET_ABD_SERVICE_H
34 37
38
35#include "gnunet_util_lib.h" 39#include "gnunet_util_lib.h"
36#include "gnunet_gns_service.h" 40#include "gnunet_gns_service.h"
37#include "gnunet_identity_service.h" 41#include "gnunet_identity_service.h"
@@ -103,7 +107,7 @@ struct GNUNET_ABD_DelegationRecordSet
103 /** 107 /**
104 * Public key of the subject this attribute was delegated to 108 * Public key of the subject this attribute was delegated to
105 */ 109 */
106 struct GNUNET_IDENTITY_PublicKey subject_key; 110 struct GNUNET_CRYPTO_PublicKey subject_key;
107 111
108 /** 112 /**
109 * Length of attribute, may be 0 113 * Length of attribute, may be 0
@@ -123,7 +127,7 @@ struct GNUNET_ABD_DelegationSet
123 /** 127 /**
124 * Public key of the subject this attribute was delegated to 128 * Public key of the subject this attribute was delegated to
125 */ 129 */
126 struct GNUNET_IDENTITY_PublicKey subject_key; 130 struct GNUNET_CRYPTO_PublicKey subject_key;
127 131
128 uint32_t subject_attribute_len; 132 uint32_t subject_attribute_len;
129 133
@@ -143,12 +147,12 @@ struct GNUNET_ABD_Delegation
143 /** 147 /**
144 * The issuer of the delegation 148 * The issuer of the delegation
145 */ 149 */
146 struct GNUNET_IDENTITY_PublicKey issuer_key; 150 struct GNUNET_CRYPTO_PublicKey issuer_key;
147 151
148 /** 152 /**
149 * Public key of the subject this attribute was delegated to 153 * Public key of the subject this attribute was delegated to
150 */ 154 */
151 struct GNUNET_IDENTITY_PublicKey subject_key; 155 struct GNUNET_CRYPTO_PublicKey subject_key;
152 156
153 /** 157 /**
154 * Length of the attribute 158 * Length of the attribute
@@ -181,17 +185,17 @@ struct GNUNET_ABD_Delegate
181 /** 185 /**
182 * The issuer of the credential 186 * The issuer of the credential
183 */ 187 */
184 struct GNUNET_IDENTITY_PublicKey issuer_key; 188 struct GNUNET_CRYPTO_PublicKey issuer_key;
185 189
186 /** 190 /**
187 * Public key of the subject this credential was issued to 191 * Public key of the subject this credential was issued to
188 */ 192 */
189 struct GNUNET_IDENTITY_PublicKey subject_key; 193 struct GNUNET_CRYPTO_PublicKey subject_key;
190 194
191 /** 195 /**
192 * Signature of this credential 196 * Signature of this credential
193 */ 197 */
194 struct GNUNET_IDENTITY_Signature signature; 198 struct GNUNET_CRYPTO_Signature signature;
195 199
196 /** 200 /**
197 * Expiration of this credential 201 * Expiration of this credential
@@ -318,9 +322,9 @@ typedef void (*GNUNET_ABD_RemoveDelegateResultProcessor) (void *cls,
318 */ 322 */
319struct GNUNET_ABD_Request* 323struct GNUNET_ABD_Request*
320 GNUNET_ABD_verify (struct GNUNET_ABD_Handle *handle, 324 GNUNET_ABD_verify (struct GNUNET_ABD_Handle *handle,
321 const struct GNUNET_IDENTITY_PublicKey *issuer_key, 325 const struct GNUNET_CRYPTO_PublicKey *issuer_key,
322 const char *issuer_attribute, 326 const char *issuer_attribute,
323 const struct GNUNET_IDENTITY_PublicKey *subject_key, 327 const struct GNUNET_CRYPTO_PublicKey *subject_key,
324 uint32_t delegate_count, 328 uint32_t delegate_count,
325 const struct GNUNET_ABD_Delegate *delegates, 329 const struct GNUNET_ABD_Delegate *delegates,
326 enum GNUNET_ABD_AlgoDirectionFlags direction, 330 enum GNUNET_ABD_AlgoDirectionFlags direction,
@@ -331,9 +335,9 @@ struct GNUNET_ABD_Request*
331 335
332struct GNUNET_ABD_Request* 336struct GNUNET_ABD_Request*
333 GNUNET_ABD_collect (struct GNUNET_ABD_Handle *handle, 337 GNUNET_ABD_collect (struct GNUNET_ABD_Handle *handle,
334 const struct GNUNET_IDENTITY_PublicKey *issuer_key, 338 const struct GNUNET_CRYPTO_PublicKey *issuer_key,
335 const char *issuer_attribute, 339 const char *issuer_attribute,
336 const struct GNUNET_IDENTITY_PrivateKey *subject_key, 340 const struct GNUNET_CRYPTO_PrivateKey *subject_key,
337 enum GNUNET_ABD_AlgoDirectionFlags direction, 341 enum GNUNET_ABD_AlgoDirectionFlags direction,
338 GNUNET_ABD_CredentialResultProcessor proc, 342 GNUNET_ABD_CredentialResultProcessor proc,
339 void *proc_cls, 343 void *proc_cls,
@@ -356,7 +360,7 @@ struct GNUNET_ABD_Request *
356GNUNET_ABD_add_delegation (struct GNUNET_ABD_Handle *handle, 360GNUNET_ABD_add_delegation (struct GNUNET_ABD_Handle *handle,
357 struct GNUNET_IDENTITY_Ego *issuer, 361 struct GNUNET_IDENTITY_Ego *issuer,
358 const char *attribute, 362 const char *attribute,
359 struct GNUNET_IDENTITY_PublicKey *subject, 363 struct GNUNET_CRYPTO_PublicKey *subject,
360 const char *delegated_attribute, 364 const char *delegated_attribute,
361 GNUNET_ABD_DelegateResultProcessor proc, 365 GNUNET_ABD_DelegateResultProcessor proc,
362 void *proc_cls); 366 void *proc_cls);
@@ -384,13 +388,13 @@ GNUNET_ABD_remove_delegation (struct GNUNET_ABD_Handle *handle,
384 * 388 *
385 * @param issuer the ego that should be used to issue the attribute 389 * @param issuer the ego that should be used to issue the attribute
386 * @param subject the subject of the attribute 390 * @param subject the subject of the attribute
387 * @param attribute the name of the attribute 391 * @param iss_attr the name of the attribute
388 * @param expiration the TTL of the credential 392 * @param expiration the TTL of the credential
389 * @return handle to the queued request 393 * @return handle to the queued request
390 */ 394 */
391struct GNUNET_ABD_Delegate* 395struct GNUNET_ABD_Delegate*
392GNUNET_ABD_delegate_issue (const struct GNUNET_IDENTITY_PrivateKey *issuer, 396GNUNET_ABD_delegate_issue (const struct GNUNET_CRYPTO_PrivateKey *issuer,
393 struct GNUNET_IDENTITY_PublicKey *subject, 397 struct GNUNET_CRYPTO_PublicKey *subject,
394 const char *iss_attr, 398 const char *iss_attr,
395 const char *sub_attr, 399 const char *sub_attr,
396 struct GNUNET_TIME_Absolute *expiration); 400 struct GNUNET_TIME_Absolute *expiration);
@@ -415,3 +419,5 @@ GNUNET_ABD_request_cancel (struct GNUNET_ABD_Request *lr);
415#endif 419#endif
416 420
417/** @} */ /* end of group */ 421/** @} */ /* end of group */
422
423/** @} */ /* end of group addition to reclaim_suite */