summaryrefslogtreecommitdiff
path: root/strciphr.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-07-25 00:15:52 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-07-25 00:15:52 +0000
commit58d9f812c149943cc18bd5b926b22fcc7b9b8b27 (patch)
tree9227398b87250aa1eca81b0853a967fe9d003103 /strciphr.h
parent60ae2279fbb3b8082a7963ce73dcd2b6b2d4a50e (diff)
downloadcryptopp-58d9f812c149943cc18bd5b926b22fcc7b9b8b27.tar.gz
fix bugs in 64-bit CPU support
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@112 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'strciphr.h')
-rw-r--r--strciphr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/strciphr.h b/strciphr.h
index 3e0a739..eb1d22f 100644
--- a/strciphr.h
+++ b/strciphr.h
@@ -66,7 +66,7 @@ struct CRYPTOPP_DLL CRYPTOPP_NO_VTABLE AdditiveCipherAbstractPolicy
virtual void CipherSetKey(const NameValuePairs &params, const byte *key, unsigned int length) =0;
virtual void CipherResynchronize(byte *keystreamBuffer, const byte *iv) {throw NotImplemented("StreamTransformation: this object doesn't support resynchronization");}
virtual bool IsRandomAccess() const =0;
- virtual void SeekToIteration(dword iterationCount) {assert(!IsRandomAccess()); throw NotImplemented("StreamTransformation: this object doesn't support random access");}
+ virtual void SeekToIteration(lword iterationCount) {assert(!IsRandomAccess()); throw NotImplemented("StreamTransformation: this object doesn't support random access");}
};
template <typename WT, unsigned int W, unsigned int X = 1, class BASE = AdditiveCipherAbstractPolicy>
@@ -130,7 +130,7 @@ public:
bool IsSelfInverting() const {return true;}
bool IsForwardTransformation() const {return true;}
bool IsRandomAccess() const {return GetPolicy().IsRandomAccess();}
- void Seek(dword position);
+ void Seek(lword position);
typedef typename BASE::PolicyInterface PolicyInterface;