diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-04-16 00:29:47 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-04-16 00:29:47 +0000 |
commit | b079b80e5c75ef424ad2ecc98bd556596d2f8163 (patch) | |
tree | a7cdeb6f42d869cb5971f7eec6df73aefa49c007 /cryptlib.cpp | |
parent | ed87080c216c259707c81de1b049b0e31b712d10 (diff) | |
download | cryptopp-b079b80e5c75ef424ad2ecc98bd556596d2f8163.tar.gz |
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
Diffstat (limited to 'cryptlib.cpp')
-rw-r--r-- | cryptlib.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } |