make CTS functions public
parent
ffb6f9cd3f
commit
0e0049180d
5
modes.h
5
modes.h
|
|
@ -197,6 +197,8 @@ class CBC_CTS_Encryption : public CBC_Encryption
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void SetStolenIV(byte *iv) {m_stolenIV = iv;}
|
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:
|
protected:
|
||||||
void UncheckedSetKey(const NameValuePairs ¶ms, const byte *key, unsigned int length)
|
void UncheckedSetKey(const NameValuePairs ¶ms, const byte *key, unsigned int length)
|
||||||
|
|
@ -204,8 +206,6 @@ protected:
|
||||||
CBC_Encryption::UncheckedSetKey(params, key, length);
|
CBC_Encryption::UncheckedSetKey(params, key, length);
|
||||||
m_stolenIV = params.GetValueWithDefault(Name::StolenIV(), (byte *)NULL);
|
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;
|
byte *m_stolenIV;
|
||||||
};
|
};
|
||||||
|
|
@ -226,6 +226,7 @@ protected:
|
||||||
|
|
||||||
class CBC_CTS_Decryption : public CBC_Decryption
|
class CBC_CTS_Decryption : public CBC_Decryption
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
unsigned int MinLastBlockSize() const {return BlockSize()+1;}
|
unsigned int MinLastBlockSize() const {return BlockSize()+1;}
|
||||||
void ProcessLastBlock(byte *outString, const byte *inString, unsigned int length);
|
void ProcessLastBlock(byte *outString, const byte *inString, unsigned int length);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue