The DH implementation of OpenSSL in the CRYPT/DH directory, each source code is as follows:
(1) dh.h
The DH key method data structure and various functions are defined.
(2) dh_asn1.c
The DER-codec implementation of the DH key parameter.
(3) DH_LIB.C
The implementation of the general DH function, design level.
(4) DH_GEN.C
The Generate DH key parameter is implemented.
(5) Dh_key.c
The default Dh_method provided by OpenSSL enables the generation of a DH public key based on the key parameter, and a shared key is generated from the DH public key (one party) and the DH private key (the other) for key exchange.
(6) Dh_err.c
DH error handling has been implemented.
(7) DH_CHECK.C
A DH key check is implemented.
(8) Dh_pmeth.c
The DH public key data structure is implemented.
(9) DH_KDF.C
Derived keys are associated with ASN1.
(Ten) Dh_depr.c
Deprecated functions are not recommended.
(one) dh_prn.c
Resolves data output to a file without the FP interface.
(dh_rfc5114.c) p192.c p512.c p1024.c
Provides parameters and test data.
Implementation of DH algorithm in OpenSSL