diff options
author | weidai <weidai11@users.noreply.github.com> | 2003-03-20 01:24:12 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2003-03-20 01:24:12 +0000 |
commit | 538de80a91da74598ba2449fbbec6de37376a4ce (patch) | |
tree | f85b3bed971083e90e5f3dbb84539ea4ba0359e9 /rabin.h | |
parent | 21955e23ec9697d1cd47ff91f91b08af382b8a6d (diff) | |
download | cryptopp-git-538de80a91da74598ba2449fbbec6de37376a4ce.tar.gz |
various changes for 5.1
Diffstat (limited to 'rabin.h')
-rw-r--r-- | rabin.h | 20 |
1 files changed, 3 insertions, 17 deletions
@@ -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<STANDARD, Rabin> }; //! . -template <class EM> -struct RabinSSR -{ - typedef PK_FinalTemplate<SignerWithRecoveryTemplate<InvertibleRabinFunction, EM> > Signer; - typedef PK_FinalTemplate<VerifierWithRecoveryTemplate<RabinFunction, EM> > Verifier; -}; - -//! . -template <class H> -struct RabinPSSR : public RabinSSR<PSSR<H> > +template <class STANDARD, class H> +struct RabinSS : public TF_SS<STANDARD, H, Rabin> { }; @@ -112,12 +104,6 @@ class SHA; typedef RabinES<OAEP<SHA> >::Decryptor RabinDecryptor; typedef RabinES<OAEP<SHA> >::Encryptor RabinEncryptor; -#ifdef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY -// simulate template typedef -#define RabinSignerWith(H) RabinPSSR<H>::Signer -#define RabinVerifierWith(H) RabinPSSR<H>::Verifier -#endif - NAMESPACE_END #endif |