summaryrefslogtreecommitdiff
path: root/modes.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2002-10-15 04:05:12 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2002-10-15 04:05:12 +0000
commit9242d66857d0199765f58148ea33821438f864e2 (patch)
tree629a1274bca977a186d96db605d701ff737b4e7a /modes.h
parent4c0a51c03701dd76b6f837e6aaf104fb616e6e44 (diff)
downloadcryptopp-9242d66857d0199765f58148ea33821438f864e2.tar.gz
make CTS functions public
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@10 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'modes.h')
-rw-r--r--modes.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/modes.h b/modes.h
index 671f212..b57bd8d 100644
--- a/modes.h
+++ b/modes.h
@@ -197,6 +197,8 @@ class CBC_CTS_Encryption : public CBC_Encryption
{
public:
void SetStolenIV(byte *iv) {m_stolenIV = iv;}
+ unsigned int MinLastBlockSize() const {return BlockSize()+1;}
+ void ProcessLastBlock(byte *outString, const byte *inString, unsigned int length);
protected:
void UncheckedSetKey(const NameValuePairs &params, const byte *key, unsigned int length)
@@ -204,8 +206,6 @@ protected:
CBC_Encryption::UncheckedSetKey(params, key, length);
m_stolenIV = params.GetValueWithDefault(Name::StolenIV(), (byte *)NULL);
}
- unsigned int MinLastBlockSize() const {return BlockSize()+1;}
- void ProcessLastBlock(byte *outString, const byte *inString, unsigned int length);
byte *m_stolenIV;
};
@@ -226,6 +226,7 @@ protected:
class CBC_CTS_Decryption : public CBC_Decryption
{
+public:
unsigned int MinLastBlockSize() const {return BlockSize()+1;}
void ProcessLastBlock(byte *outString, const byte *inString, unsigned int length);
};