The GNSRECORD encryption context. More...
#include <gnunet_gnsrecord_lib.h>
Data Fields | |
| void * | cls |
| Private data of the context. | |
| enum GNUNET_GenericReturnValue(* | seal )(void *cls, const char *label, struct GNUNET_TIME_Absolute expire, unsigned int rd_count, const struct GNUNET_GNSRECORD_Data rd[rd_count], struct GNUNET_GNSRECORD_Block **result) |
| Seal a record set. | |
| enum GNUNET_GenericReturnValue(* | open )(void *cls, const char *label, const struct GNUNET_GNSRECORD_Block *block, GNUNET_GNSRECORD_RecordCallback proc, void *proc_cls) |
| Open a record set. | |
The GNSRECORD encryption context.
Used to de/encrypt GNS records.
Definition at line 718 of file gnunet_gnsrecord_lib.h.
| void* GNUNET_GNSRECORD_EncryptionContext::cls |
Private data of the context.
Passed to the APIs below as first argument.
Definition at line 724 of file gnunet_gnsrecord_lib.h.
Referenced by GNUNET_GNSRECORD_block_decrypt(), GNUNET_GNSRECORD_encryption_context_destroy(), GNUNET_GNSRECORD_encryption_context_setup_owner(), and GNUNET_GNSRECORD_encryption_context_setup_resolver().
| enum GNUNET_GenericReturnValue(* GNUNET_GNSRECORD_EncryptionContext::seal) (void *cls, const char *label, struct GNUNET_TIME_Absolute expire, unsigned int rd_count, const struct GNUNET_GNSRECORD_Data rd[rd_count], struct GNUNET_GNSRECORD_Block **result) |
Seal a record set.
| cls | internal encryption context data. You MUST pass the cls field of the struct GNUNET_GNSRECORD_EncryptionContext here. |
| label | the name for the records |
| expire | block expiration |
| rd_count | number of records in rd |
| rd | record data |
| result | the block buffer. Will be allocated. |
Definition at line 724 of file gnunet_gnsrecord_lib.h.
Referenced by GNUNET_GNSRECORD_encryption_context_setup_owner(), and GNUNET_GNSRECORD_encryption_context_setup_resolver().
| enum GNUNET_GenericReturnValue(* GNUNET_GNSRECORD_EncryptionContext::open) (void *cls, const char *label, const struct GNUNET_GNSRECORD_Block *block, GNUNET_GNSRECORD_RecordCallback proc, void *proc_cls) |
Open a record set.
| cls | internal encryption context data. You MUST pass the cls field of the struct GNUNET_GNSRECORD_EncryptionContext here. |
| label | the name for the records |
| block | the encrypted record block |
| proc | function to call with the result |
| proc_cls | closure for proc |
Definition at line 724 of file gnunet_gnsrecord_lib.h.
Referenced by GNUNET_GNSRECORD_block_decrypt(), GNUNET_GNSRECORD_encryption_context_setup_owner(), and GNUNET_GNSRECORD_encryption_context_setup_resolver().