|
SmartSnippets DA1459x SDK
|
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 |
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).
| crypto_ec_params_t crypto_ecdh_context_t::curve |
The curve used.
| uint8_t crypto_ecdh_context_t::d[32] |
Our private key.
| unsigned int crypto_ecdh_context_t::flags |
ECDH context flags (crypto_ecdh_context_flags).
| uint8_t crypto_ecdh_context_t::Ql[2][32] |
Our public key (x coordinate in [0], y coordinate in [1]).
| uint8_t crypto_ecdh_context_t::Qp[2][32] |
The peer's public key (x coordinate in [0], y coordinate in [1]).
| uint8_t crypto_ecdh_context_t::s[32] |
The shared secret.
1.8.16