SmartSnippets DA1459x SDK
Data Fields
crypto_ecdh_context_t Struct Reference

ECDH context. More...

#include <crypto_ecdh.h>

Data Fields

uint8_t d [32]
 
uint8_t Ql [2][32]
 
uint8_t Qp [2][32]
 
uint8_t s [32]
 
crypto_ec_params_t curve
 
unsigned int flags
 

Detailed Description

ECDH context.

The context data are stored. For curves with operands smaller than 256-bits, zero padding is performed. A context should be initialized using CRYPTO_ECDH_INIT_CTX and a curve from crypto curves and having its flags set appropriately before passing it as argument to any function. Data are stored in big endian format, except from when using Curve25516 (CRYPTO_EC_PARAMS_CURVE25519).

Note
y coordinates are not used with Curve25519.

Field Documentation

◆ curve

crypto_ec_params_t crypto_ecdh_context_t::curve

The curve used.

◆ d

uint8_t crypto_ecdh_context_t::d[32]

Our private key.

◆ flags

unsigned int crypto_ecdh_context_t::flags

ECDH context flags (crypto_ecdh_context_flags).

◆ Ql

uint8_t crypto_ecdh_context_t::Ql[2][32]

Our public key (x coordinate in [0], y coordinate in [1]).

◆ Qp

uint8_t crypto_ecdh_context_t::Qp[2][32]

The peer's public key (x coordinate in [0], y coordinate in [1]).

◆ s

uint8_t crypto_ecdh_context_t::s[32]

The shared secret.


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