diff options
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"); } |