MCPcopy Create free account
hub / github.com/LUX-Core/lux / ThrowIfInvalidIV

Method ThrowIfInvalidIV

src/cryptopp/cryptlib.cpp:125–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void SimpleKeyingInterface::ThrowIfInvalidIV(const byte *iv)
126{
127 if (!iv && IVRequirement() == UNPREDICTABLE_RANDOM_IV)
128 throw InvalidArgument(GetAlgorithm().AlgorithmName() + ": this object cannot use a null IV");
129}
130
131size_t SimpleKeyingInterface::ThrowIfInvalidIVLength(int size)
132{

Callers 1

SetCipherWithIVFunction · 0.80

Calls 2

IVRequirementFunction · 0.70
AlgorithmNameMethod · 0.45

Tested by

no test coverage detected