Security Scol plugin
|
Inherited by algorithms with variable number of rounds. More...
#include <seckey.h>
Public Member Functions | |
CRYPTOPP_CONSTANT (DEFAULT_ROUNDS=D) | |
The default number of rounds for the algorithm provided as a constant. | |
CRYPTOPP_CONSTANT (MIN_ROUNDS=N) | |
The minimum number of rounds for the algorithm provided as a constant. | |
CRYPTOPP_CONSTANT (MAX_ROUNDS=M) | |
The maximum number of rounds for the algorithm provided as a constant. | |
CRYPTOPP_STATIC_CONSTEXPR unsigned int | StaticGetDefaultRounds (size_t keylength) |
The default number of rounds for the algorithm based on key length provided by a static function. | |
Protected Member Functions | |
void | ThrowIfInvalidRounds (int rounds, const Algorithm *alg) |
Validates the number of rounds for an algorithm. | |
unsigned int | GetRoundsAndThrowIfInvalid (const NameValuePairs ¶m, const Algorithm *alg) |
Validates the number of rounds for an algorithm. | |
Inherited by algorithms with variable number of rounds.
D | Default number of rounds |
N | Minimum number of rounds |
M | Maximum number of rounds |
|
inlineprotected |
Validates the number of rounds for an algorithm.
param | the candidate number of rounds |
alg | an Algorithm object used if the number of rounds are invalid |
InvalidRounds | if the number of rounds are invalid |
GetRoundsAndThrowIfInvalid() validates the number of rounds and throws if invalid.
|
inline |
|
inlineprotected |
Validates the number of rounds for an algorithm.
rounds | the candidate number of rounds |
alg | an Algorithm object used if the number of rounds are invalid |
InvalidRounds | if the number of rounds are invalid |
ThrowIfInvalidRounds() validates the number of rounds and throws if invalid.