GNUnet 0.27.0-16-g4ff9ca3f4
 
Loading...
Searching...
No Matches
GNUNET_GNSRECORD_EncryptionContext Struct Reference

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.
 

Detailed Description

The GNSRECORD encryption context.

Used to de/encrypt GNS records.

Definition at line 718 of file gnunet_gnsrecord_lib.h.

Field Documentation

◆ cls

void* GNUNET_GNSRECORD_EncryptionContext::cls

◆ seal

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.

Parameters
clsinternal encryption context data. You MUST pass the cls field of the struct GNUNET_GNSRECORD_EncryptionContext here.
labelthe name for the records
expireblock expiration
rd_countnumber of records in rd
rdrecord data
resultthe block buffer. Will be allocated.
Returns
GNUNET_OK on success

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().

◆ open

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.

Parameters
clsinternal encryption context data. You MUST pass the cls field of the struct GNUNET_GNSRECORD_EncryptionContext here.
labelthe name for the records
blockthe encrypted record block
procfunction to call with the result
proc_clsclosure for proc
Returns
GNUNET_OK on success, GNUNET_SYSERR if the block was not well-formed

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().


The documentation for this struct was generated from the following file: