GNUnet  0.11.x
Data Fields
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 66 of file crypto_ecc_dlog.c.

Field Documentation

◆ max

unsigned int GNUNET_CRYPTO_EccDlogContext::max

Maximum absolute value the calculation supports.

Definition at line 71 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 76 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 84 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

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