From 0e0049180df954f341fa056797c92916950c3e58 Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 15 Oct 2002 04:05:12 +0000 Subject: [PATCH] make CTS functions public --- modes.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modes.h b/modes.h index 671f2125..b57bd8d1 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 ¶ms, 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); };