#include "dinamo.h"
Data Fields | |
| char | szTargetKeyName[MAX_OBJ_ID_FQN_LEN] |
| DWORD | dwTargetKeyAlg |
| DWORD | dwTargetKeyAttributes |
| DBLOB | dbPubKey |
| DBLOB | dbKDFData |
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).
| 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.
| DWORD dwTargetKeyAlg |
Algorithm of the key to be derived. This parameter must always be defined.
| 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.
| 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.