From d23a489940499bd6c634a1cb0a9875f094f8a850 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 20 Mar 2003 01:24:12 +0000 Subject: various changes for 5.1 git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@38 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- rabin.h | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'rabin.h') diff --git a/rabin.h b/rabin.h index 34d21f5..f321271 100644 --- a/rabin.h +++ b/rabin.h @@ -57,7 +57,7 @@ public: void BERDecode(BufferedTransformation &bt); void DEREncode(BufferedTransformation &bt) const; - Integer CalculateInverse(const Integer &x) const; + Integer CalculateInverse(RandomNumberGenerator &rng, const Integer &x) const; bool Validate(RandomNumberGenerator &rng, unsigned int level) const; bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const; @@ -92,16 +92,8 @@ struct RabinES : public TF_ES }; //! . -template -struct RabinSSR -{ - typedef PK_FinalTemplate > Signer; - typedef PK_FinalTemplate > Verifier; -}; - -//! . -template -struct RabinPSSR : public RabinSSR > +template +struct RabinSS : public TF_SS { }; @@ -112,12 +104,6 @@ class SHA; typedef RabinES >::Decryptor RabinDecryptor; typedef RabinES >::Encryptor RabinEncryptor; -#ifdef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY -// simulate template typedef -#define RabinSignerWith(H) RabinPSSR::Signer -#define RabinVerifierWith(H) RabinPSSR::Verifier -#endif - NAMESPACE_END #endif -- cgit v1.2.1