commit
3e5d81a250
2
config.h
2
config.h
|
|
@ -449,7 +449,7 @@ NAMESPACE_END
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// how to declare class constants
|
// how to declare class constants
|
||||||
#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__INTEL_COMPILER)
|
#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__INTEL_COMPILER) || defined(__BORLANDC__)
|
||||||
# define CRYPTOPP_CONSTANT(x) enum {x};
|
# define CRYPTOPP_CONSTANT(x) enum {x};
|
||||||
#else
|
#else
|
||||||
# define CRYPTOPP_CONSTANT(x) static const int x;
|
# define CRYPTOPP_CONSTANT(x) static const int x;
|
||||||
|
|
|
||||||
5
seckey.h
5
seckey.h
|
|
@ -80,7 +80,10 @@ protected:
|
||||||
//! \throws InvalidRounds if the number of rounds are invalid
|
//! \throws InvalidRounds if the number of rounds are invalid
|
||||||
inline void ThrowIfInvalidRounds(int rounds, const Algorithm *alg)
|
inline void ThrowIfInvalidRounds(int rounds, const Algorithm *alg)
|
||||||
{
|
{
|
||||||
#if (M==INT_MAX) // Coverity and result_independent_of_operands
|
#if defined(__BORLANDC__)
|
||||||
|
if (rounds < MIN_ROUNDS || rounds > MAX_ROUNDS)
|
||||||
|
throw InvalidRounds(alg ? alg->AlgorithmName() : std::string("VariableRounds"), rounds);
|
||||||
|
#elif (M==INT_MAX) // Coverity and result_independent_of_operands
|
||||||
if (rounds < MIN_ROUNDS)
|
if (rounds < MIN_ROUNDS)
|
||||||
throw InvalidRounds(alg ? alg->AlgorithmName() : "VariableRounds", rounds);
|
throw InvalidRounds(alg ? alg->AlgorithmName() : "VariableRounds", rounds);
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue