GNUnet 0.21.1
GNUNET_CRYPTO_EccDlogContext Struct Reference

Internal structure used to cache pre-calculated values for DLOG calculation. More...

Collaboration diagram for GNUNET_CRYPTO_EccDlogContext:
[legend]

Data Fields

unsigned int max
 Maximum absolute value the calculation supports. More...
 
unsigned int mem
 How much memory should we use (relates to the number of entries in the map). More...
 
struct GNUNET_CONTAINER_MultiPeerMapmap
 Map mapping points (here "interpreted" as EdDSA public keys) to a "void * = long" which corresponds to the numeric value of the point. More...
 
gcry_ctx_t ctx
 Context to use for operations on the elliptic curve. More...
 

Detailed Description

Internal structure used to cache pre-calculated values for DLOG calculation.

Definition at line 37 of file crypto_ecc_dlog.c.

Field Documentation

◆ max

unsigned int GNUNET_CRYPTO_EccDlogContext::max

Maximum absolute value the calculation supports.

Definition at line 42 of file crypto_ecc_dlog.c.

Referenced by GNUNET_CRYPTO_ecc_dlog(), and GNUNET_CRYPTO_ecc_dlog_prepare().

◆ mem

unsigned int GNUNET_CRYPTO_EccDlogContext::mem

How much memory should we use (relates to the number of entries in the map).

Definition at line 47 of file crypto_ecc_dlog.c.

Referenced by GNUNET_CRYPTO_ecc_dlog(), and GNUNET_CRYPTO_ecc_dlog_prepare().

◆ map

struct GNUNET_CONTAINER_MultiPeerMap* GNUNET_CRYPTO_EccDlogContext::map

Map mapping points (here "interpreted" as EdDSA public keys) to a "void * = long" which corresponds to the numeric value of the point.

As NULL is used to represent "unknown", the actual value represented by the entry in the map is the "long" minus max.

Definition at line 55 of file crypto_ecc_dlog.c.

Referenced by GNUNET_CRYPTO_ecc_dlog(), GNUNET_CRYPTO_ecc_dlog_prepare(), and GNUNET_CRYPTO_ecc_dlog_release().

◆ ctx

gcry_ctx_t GNUNET_CRYPTO_EccDlogContext::ctx

Context to use for operations on the elliptic curve.

Definition at line 60 of file crypto_ecc_dlog.c.


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