SymmetricKeyAlgorithm Class
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9147)
Represents a symmetric cipher algorithm.
Syntax
public class SymmetricKeyAlgorithm : IDisposable
Implements
Inherited Members
Constructors
Name | Description |
---|---|
Symmetric |
Creates an instance of Symmetric |
Properties
Name | Description |
---|---|
Algorithm | Gets algorithm ID. |
Block |
Gets or sets the desired block size in bits. |
Effective |
Gets or sets the desired effective key size in bits. |
Key |
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. |
Methods
Name | Description |
---|---|
Create |
Creates a decryptor object for this algorithm based on the currently set parameters. |
Create |
Creates an encryptor object for this algorithm based on the currently set parameters. |
Derive |
Derives an initialization vector (of Block |
Derive |
Derives a key (of Key |
Dispose() | Disposes the object. |
Generate |
Generates a initialization vector (of Block |
Generate |
Generates a random key (of Key |
Get |
Gets the current initialization vector. |
Get |
Gets the current key. |
Is |
Gets a value indicating whether the specified algorithm is supported. |
Set |
Sets the current initialization vector to the specified value. |
Set |
Sets the current key to the specified value and changes the Key |
To |
Creates a symmetric algorithm object for this algorithm based on the currently set parameters. |