diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2008-02-02 08:40:27 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2008-02-02 08:40:27 +0000 |
commit | fed5890194f50d587a9dc57f20d89e3369af125a (patch) | |
tree | 847503be51751e8e42fa6e5ed20c34d79dd76f4c /modes.h | |
parent | b261da65cbee4c18036f0f98748b924b10500f6b (diff) | |
download | cryptopp-fed5890194f50d587a9dc57f20d89e3369af125a.tar.gz |
fix infinite recursive call in IsRandomAccess (reported by ASBai)
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@421 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'modes.h')
-rw-r--r-- | modes.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -140,7 +140,7 @@ inline void CopyOrZero(void *dest, const void *src, size_t s) class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE OFB_ModePolicy : public ModePolicyCommonTemplate<AdditiveCipherAbstractPolicy> { public: - bool IsRandomAccess() const {return false;} + bool CipherIsRandomAccess() const {return false;} IV_Requirement IVRequirement() const {return UNIQUE_IV;} static const char * CRYPTOPP_API StaticAlgorithmName() {return "OFB";} @@ -162,7 +162,7 @@ private: class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE CTR_ModePolicy : public ModePolicyCommonTemplate<AdditiveCipherAbstractPolicy> { public: - bool IsRandomAccess() const {return true;} + bool CipherIsRandomAccess() const {return true;} IV_Requirement IVRequirement() const {return UNIQUE_IV;} static const char * CRYPTOPP_API StaticAlgorithmName() {return "CTR";} |