API C/C++
HSM Dinamo
Loading...
Looking for...
No entries found
Structure Reference GEN_DH_KDF

#include "dinamo.h"

Data Fields

char szTargetKeyName[MAX_OBJ_ID_FQN_LEN]
 
DWORD dwTargetKeyAlg
 
DWORD dwTargetKeyAttributes
 
DBLOB dbPubKey
 
DBLOB dbKDFData
 

Detailed description

Parameter structure for Diffie-Hellman (DH) key exchange operations. Used with the groups defined in RFC 5114 (ALG_DH_RFC5114_2048) and RFC 7919 (ALG_DH_RFC7919_2048, ALG_DH_RFC7919_3072).

Examples
gen_dh.c.

Fields

szTargetKeyName

char szTargetKeyName[MAX_OBJ_ID_FQN_LEN]

Name of the key that will be derived and saved in the HSM. To save the derived key in the HSM, the definition of szTargetKeyName and dwTargetKeyAttributes is mandatory. To receive the generated material without saving the key in the HSM, fill in '\0' with zeros in the szTargetKeyName and dwTargetKeyAttributes options.

Examples
gen_dh.c.

dwTargetKeyAlg

DWORD dwTargetKeyAlg

Algorithm of the key to be derived. This parameter must always be defined.

Examples
gen_dh.c.

dwTargetKeyAttributes

DWORD dwTargetKeyAttributes

Attributes of the key to be derived.

Examples
gen_dh.c.

dbPubKey

DBLOB dbPubKey

Public key in DER format. The combined maximum size of the dbPubKey and dbKDFData buffers must not exceed DN_DH_GEN_KEY_MAX_DATA.

Examples
gen_dh.c.

dbKDFData

DBLOB dbKDFData

Data that will be used to derive the key. The combined maximum size of the dbPubKey and dbKDFData buffers must not exceed DN_DH_GEN_KEY_MAX_DATA.

Examples
gen_dh.c.

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