Key generation algorithm that uses a Rfc2898DeriveBytes object (PBKDF2 algorithm).
More...
|
| | PasswordAlgorithmDeriveBytes () |
| |
| | PasswordAlgorithmDeriveBytes (bool publicParameters) |
| |
| virtual void | Init (bool publicParameters=false) |
| | Clears all data and resets the passwords/keys/salts generation algorithm. More...
|
| |
| virtual void | Reset () |
| | Resets the password/key generator (Clears its parameters and sets the initialization flag IsInitialized to false). More...
|
| |
| virtual void | Init (string password, byte[] salt, int numIterations) |
| |
| virtual void | Init (byte[] password, byte[] salt, int numIterations) |
| |
| string | GetPasswordString () |
| | If the generator has public parameters (flag IsParametersPublic) then the password string is returned. Otherwise, an InvalidOperationException is thrown. More...
|
| |
| byte[] | GetPasswordBytes () |
| | If the generator has public parameters (flag IsParametersPublic) then the password in form of a byte array is returned. Otherwise, an InvalidOperationException is thrown. More...
|
| |
| string | GetSaltString () |
| | If the generator has public parameters (flag IsParametersPublic) then the salt string is returned. Otherwise, an InvalidOperationException is thrown. More...
|
| |
| byte[] | GetSaltBytes () |
| | If the generator has public parameters (flag IsParametersPublic) then the salt in form of a byte array is returned. Otherwise, an InvalidOperationException is thrown. More...
|
| |
| int | GetNuIterations () |
| | If the generator has public parameters (flag IsParametersPublic) then the number of iterations is returned. Otherwise, an InvalidOperationException is thrown. More...
|
| |
| byte[] | GetLastGeneratedBytes () |
| | If the generator has public parameters (flag IsParametersPublic) then the last generated key in form of a byte array is returned. Otherwise, an InvalidOperationException is thrown. More...
|
| |
| int | GetNuGenerations () |
| | Returns the number of keys (byte sequences) generated until now. More...
|
| |
| void | GetBytes (int numBytes, ref byte[] outputBytes) |
| | Creates and stores the next generated key of the specified length. More...
|
| |
| byte[] | GetBytes (int numBytes) |
| | Creates and returns the next generated key of the specified length by calling GetBytes(int, ref byte[]). More...
|
| |
|
| PasswordDeriveBytes | ExternalAlgorithm [get, set] |
| | External algoritgm that will do the job. More...
|
| |
| bool | IsParametersPublic [get, protected set] |
| | Flag that specifies whether initialization parameters of the algorithm can be queried or not. More...
|
| |
| bool | IsInitialized [get, set] |
| | Flag that specifies whether the algorithm has been initialized. More...
|
| |
| string | PasswordString [get, set] |
| | Password, in form of string, to be used in generation of keys, initialization vectors, etc. More...
|
| |
| byte[] | PasswordBytes [get, set] |
| | Password, in form of byte array, to be used in generation of keys, initialization vectors, etc. More...
|
| |
| string | SaltString [get, set] |
| | Salt, in form of byte array, to be used in generation of keys, initialization vectors, etc. More...
|
| |
| byte[] | SaltBytes [get, set] |
| | Salt, in form of byte array, to be used in generation of keys, initialization vectors, etc. More...
|
| |
| int | NumIterations [get, set] |
| | Number of iteration used when generating keys. More...
|
| |
| byte[] | LastGeneratedBytes [get, set] |
| | Last value of the generated bytes. More...
|
| |
| int | NumGenerations [get, set] |
| | Number of generated keys (byte sequences) up to now. More...
|
| |
Key generation algorithm that uses a Rfc2898DeriveBytes object (PBKDF2 algorithm).
$A Igor Jun15;