From b079b80e5c75ef424ad2ecc98bd556596d2f8163 Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 16 Apr 2007 00:29:47 +0000 Subject: rename STRUCTURED_IV to UNIQUE_IV. Sun CC workaround git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@306 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- cryptlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cryptlib.cpp') diff --git a/cryptlib.cpp b/cryptlib.cpp index 642d5f2..b6f25a1 100644 --- a/cryptlib.cpp +++ b/cryptlib.cpp @@ -77,7 +77,7 @@ void SimpleKeyingInterface::ThrowIfResynchronizable() void SimpleKeyingInterface::ThrowIfInvalidIV(const byte *iv) { - if (!iv && !(IVRequirement() == INTERNALLY_GENERATED_IV || IVRequirement() == STRUCTURED_IV || !IsResynchronizable())) + if (!iv && !(IVRequirement() == INTERNALLY_GENERATED_IV || IVRequirement() == UNIQUE_IV || !IsResynchronizable())) throw InvalidArgument(GetAlgorithm().AlgorithmName() + ": this object cannot use a null IV"); } -- cgit v1.2.1