The SymmetricKeyAlgorithm type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SymmetricKeyAlgorithm |
Creates an instance of SymmetricKeyAlgorithmId for the specified algorithm.
|
Methods
Name | Description | |
---|---|---|
CreateDecryptor |
Creates a decryptor object for this algorithm based on the currently set parameters.
| |
CreateEncryptor |
Creates an encryptor object for this algorithm based on the currently set parameters.
| |
DeriveIV |
Derives an initialization vector (of BlockSize length) using the specified generator.
| |
DeriveKey |
Derives a key (of KeySize length) using the specified generator.
| |
Dispose |
Disposes the object.
| |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GenerateIV |
Generates a initialization vector (of BlockSize length).
| |
GenerateKey |
Generates a random key (of KeySize length).
| |
GetHashCode | Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
GetIV |
Gets the current initialization vector.
| |
GetKey |
Gets the current key.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsSupported |
Gets a value indicating whether the specified algorithm is supported.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetIV |
Sets the current initialization vector to the specified value.
| |
SetKey |
Sets the current key to the specified value and changes the KeySize accordingly.
| |
ToString | Returns a String that represents the current Object. (Inherited from Object.) | |
ToSymmetricAlgorithm |
Creates a symmetric algorithm object for this algorithm based on the currently set parameters.
|
Properties
Name | Description | |
---|---|---|
Algorithm |
Gets algorithm ID.
| |
BlockSize |
Gets or sets the desired block size in bits.
| |
EffectiveKeySize |
Gets or sets the desired effective key size in bits.
| |
KeySize |
Gets or sets the desired key size in bits.
| |
Mode |
Gets or sets the desired block cipher mode.
| |
Padding |
Gets or sets the desired block cipher padding mode.
|