IGLib
1.7.2
The IGLib base library for development of numerical, technical and business applications.
|
This class contains key parameters of the cryptographic operations performed on some item. More...
Public Member Functions | |
CryptoParameters () | |
void | Reset () |
Resets the state. More... | |
bool | IsFlagsSet (params CryptoFlags[] whichFlags) |
Returns true if ALL the specified flags are set, or false if some of them are unset. More... | |
bool | IsAnyFlagSet (params CryptoFlags[] whichFlags) |
Returns true if any of the specified flags is set, or false if none of them is set. More... | |
void | SetFlags (params CryptoFlags[] whichFlags) |
Sets the specified flags. More... | |
void | ClearFlags (CryptoFlags firstFlags, params CryptoFlags[] whichFlags) |
Clears the specified flags. More... | |
void | ClearAllFlags () |
Clears all flags. More... | |
Properties | |
CryptoFlags | Flags [get, private set] |
Flags for cryptographic operations performed. More... | |
Private Attributes | |
CryptoFlags | _flags = CryptoFlags.None |
This class contains key parameters of the cryptographic operations performed on some item.
Class also handles some tasks that enable consisstent performance of operations, such as writing and reading cryptographic heads of encrypted files and data.
This is the base class for
$A Igor May15;
|
inline |
|
inline |
Resets the state.
|
inline |
Returns true if ALL the specified flags are set, or false if some of them are unset.
whichFlags | Specifies which flags are queried. A set of one or more values can be specified, of which each one can be an orred combination of flags to be queried. |
|
inline |
Returns true if any of the specified flags is set, or false if none of them is set.
whichFlags | Specifies which flags are queried. A set of one or more values can be specified, of which each one can be an orred combination of flags to be queried. |
|
inline |
Sets the specified flags.
whichFlags | Specifies which flags are set. A single flag can be specified such as CryptoFlags.Hashing, or an orred combination of flags to be set. |
|
inline |
Clears the specified flags.
firstFlags | The same as whichFlags . This argument is actually the first of flags that are taken into account, ensuring that at least one value is specified in the call with variable number of arguments. |
whichFlags | Specifies which flags are cleared. A set of one or more values can be specified, of which each one can be an orred combination of flags to be set. |
|
inline |
Clears all flags.
|
private |
|
getprivate set |
Flags for cryptographic operations performed.
Warning: don't set the whole flags direcryl, only individual flags should be set!
CryptoFlags.