summaryrefslogtreecommitdiff
path: root/modes.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2008-02-02 08:40:27 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2008-02-02 08:40:27 +0000
commitfed5890194f50d587a9dc57f20d89e3369af125a (patch)
tree847503be51751e8e42fa6e5ed20c34d79dd76f4c /modes.h
parentb261da65cbee4c18036f0f98748b924b10500f6b (diff)
downloadcryptopp-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/modes.h b/modes.h
index 28827fa..d6822ff 100644
--- a/modes.h
+++ b/modes.h
@@ -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";}