/* * DH Core * (C) 1999-2007 Jack Lloyd * * Distributed under the terms of the Botan license */ #ifndef BOTAN_DH_CORE_H__ #define BOTAN_DH_CORE_H__ #include #include namespace Botan { /* * DH Core */ class BOTAN_DLL DH_Core { public: BigInt agree(const BigInt&) const; DH_Core& operator=(const DH_Core&); DH_Core() { op = 0; } DH_Core(const DH_Core&); DH_Core(RandomNumberGenerator& rng, const DL_Group&, const BigInt&); ~DH_Core() { delete op; } private: DH_Operation* op; Blinder blinder; }; } #endif