diff options
author | weidai <weidai11@users.noreply.github.com> | 2004-07-22 00:51:57 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2004-07-22 00:51:57 +0000 |
commit | 393ae4859a9d3df3c5aee304b4c65121b657f613 (patch) | |
tree | faff40f3429fb7fb70249c83afd5378f92ebdb31 /dh.h | |
parent | ad8043d50c19d94177a420fba5ef6e9fd15afff1 (diff) | |
download | cryptopp-git-393ae4859a9d3df3c5aee304b4c65121b657f613.tar.gz |
fix documentation, fix PanamaMAC, fix algorithm names
Diffstat (limited to 'dh.h')
-rw-r--r-- | dh.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -17,7 +17,7 @@ class DH_Domain : public DL_SimpleKeyAgreementDomainBase<typename GROUP_PARAMETE public: typedef GROUP_PARAMETERS GroupParameters; typedef typename GroupParameters::Element Element; - typedef DL_KeyAgreementAlgorithm_DH<Element, COFACTOR_OPTION> KeyAgreementAlgorithm; + typedef DL_KeyAgreementAlgorithm_DH<Element, COFACTOR_OPTION> DH_Algorithm; typedef DH_Domain<GROUP_PARAMETERS, COFACTOR_OPTION> Domain; DH_Domain() {} @@ -76,9 +76,13 @@ public: } } + static std::string StaticAlgorithmName() + {return GroupParameters::StaticAlgorithmNamePrefix() + DH_Algorithm::StaticAlgorithmName();} + std::string AlgorithmName() const {return StaticAlgorithmName();} + private: const DL_KeyAgreementAlgorithm<Element> & GetKeyAgreementAlgorithm() const - {return Singleton<KeyAgreementAlgorithm>().Ref();} + {return Singleton<DH_Algorithm>().Ref();} DL_GroupParameters<Element> & AccessAbstractGroupParameters() {return m_groupParameters;} |