From 0a0244dacface689335de6e0edf978b29ddb66e1 Mon Sep 17 00:00:00 2001 From: weidai Date: Wed, 26 Mar 2003 21:50:44 +0000 Subject: fix bugs in SEAL and Panama git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@54 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- cryptlib.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cryptlib.h') 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 ¶ms); inline void AssertValidKeyLength(unsigned int length) const { -- cgit v1.2.1