summaryrefslogtreecommitdiff
path: root/cryptlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'cryptlib.h')
-rw-r--r--cryptlib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cryptlib.h b/cryptlib.h
index 2778397..31e32e8 100644
--- a/cryptlib.h
+++ b/cryptlib.h
@@ -381,6 +381,9 @@ public:
protected:
void ThrowIfInvalidKeyLength(const Algorithm &algorithm, unsigned int length);
+ void ThrowIfResynchronizable(); // to be called when no IV is passed
+ void ThrowIfInvalidIV(const byte *iv); // check for NULL IV if it can't be used
+ const byte * GetIVAndThrowIfInvalid(const NameValuePairs &params);
inline void AssertValidKeyLength(unsigned int length) const
{