summaryrefslogtreecommitdiff
path: root/dh.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2004-07-22 00:51:57 +0000
committerweidai <weidai11@users.noreply.github.com>2004-07-22 00:51:57 +0000
commit393ae4859a9d3df3c5aee304b4c65121b657f613 (patch)
treefaff40f3429fb7fb70249c83afd5378f92ebdb31 /dh.h
parentad8043d50c19d94177a420fba5ef6e9fd15afff1 (diff)
downloadcryptopp-git-393ae4859a9d3df3c5aee304b4c65121b657f613.tar.gz
fix documentation, fix PanamaMAC, fix algorithm names
Diffstat (limited to 'dh.h')
-rw-r--r--dh.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/dh.h b/dh.h
index 86bf6076..fd95a4ad 100644
--- a/dh.h
+++ b/dh.h
@@ -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;}