11 NAMESPACE_BEGIN(CryptoPP)
19 void Initialize(
const Integer &n)
31 Integer PreimageBound()
const {
return ++(m_n>>1);}
32 Integer ImageBound()
const {
return m_n;}
35 bool GetVoidValue(
const char *name,
const std::type_info &valueType,
void *pValue)
const;
38 const Integer& GetModulus()
const {
return m_n;}
39 void SetModulus(
const Integer &n) {m_n = n;}
52 {m_n = n; m_p = p; m_q = q; m_u = u;}
69 bool GetVoidValue(
const char *name,
const std::type_info &valueType,
void *pValue)
const;
74 const Integer& GetPrime1()
const {
return m_p;}
75 const Integer& GetPrime2()
const {
return m_q;}
76 const Integer& GetMultiplicativeInverseOfPrime2ModPrime1()
const {
return m_u;}
78 void SetPrime1(
const Integer &p) {m_p = p;}
79 void SetPrime2(
const Integer &q) {m_q = q;}
80 void SetMultiplicativeInverseOfPrime2ModPrime1(
const Integer &u) {m_u = u;}
89 static std::string StaticAlgorithmName() {
return "RW";}
95 template <
class STANDARD,
class H>