GNUnet 0.28.0-dev.2-27-gc87478450
 
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 char *rdata, size_t rdata_len, 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 char *rdata, size_t rdata_len, 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
rdatathe serialized RDATA plaintext (RFC 9498 6.2)
rdata_lenthe length of the RDATA in bytes.
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(), GNUNET_GNSRECORD_encryption_context_setup_resolver(), run_edkey(), and run_pkey().

◆ 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: