TrustCore SDK NanoCrypto API reference  version 7.0
diffieHellmanContext Struct Reference

Context information for an exercise of the DH protocol. More...

Data Fields

vlong * dh_e
 Received public key of the remote peer. More...
 
vlong * dh_f
 Public key of the local peer; see DH_setPG(). More...
 
vlong * dh_g
 Generator value; see DH_getG(). More...
 
vlong * dh_k
 Shared secret; see DH_computeKeyExchange(). More...
 
vlong * dh_p
 Large Prime modulus value; see DH_getP(). More...
 
vlong * dh_py
 
vlong * dh_q
 Prime Divisor value; see DH_setPGQ(). More...
 
vlong * dh_vf
 
vlong * dh_vi
 
vlong * dh_y
 Private key of the local peer; see DH_setPG(). More...
 
ubyte4 enabled
 
MocAsymKey pPrivateKey
 
MocAsymKey pPublicKey
 

Detailed Description

This structure stores context information needed for an exercise of the DH protocol. Most of the members store vlong values. To pre-allocate the memory used for these members, the NanoCrypto DH API functions include a parameter that you can use to specify a vlong memory queue. If you do not specify such a memory queue, the memory for these members is allocated from the heap as needed.

Field Documentation

◆ dh_e

vlong* diffieHellmanContext::dh_e

Received public key of the remote peer.

◆ dh_f

vlong* diffieHellmanContext::dh_f

Public key of the local peer; see DH_setPG().

◆ dh_g

vlong* diffieHellmanContext::dh_g

Generator value, see DH_getG().

◆ dh_k

vlong* diffieHellmanContext::dh_k

Shared secret; see DH_computeKeyExchange().

◆ dh_p

vlong* diffieHellmanContext::dh_p

Large Prime modulus value; see DH_getP().

◆ dh_q

vlong* diffieHellmanContext::dh_q

Prime Divisor value; see DH_setPGQ().

◆ dh_y

vlong* diffieHellmanContext::dh_y

Private key of the local peer; see DH_setPG().


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