SymmetricAlgorithm |
Name | Description |
---|---|
![]() | A defined set of cipher modes the algorithms can use. |
![]() | A defined set of padding modes used to fill the end of non-blocksize length data blocks. For example if an algorithm has a blocksize of 8 bytes and the data is 3 bytes in length, then 5 bytes of padding must be applied. |
Name | Description |
---|---|
![]() | Gets the block size, in bits, used by the cryptographic operation. |
![]() | Sets the block size, in bits, used by the cryptographic operation. |
![]() | Gets the feedback size, in bits, used by the cryptographic operation. |
![]() | Sets the feedback size, in bits, used by the cryptographic operation. |
![]() | Gets the initialization vector (IV) for the symmetric algorithm. |
![]() | Sets the initialization vector (IV) for the symmetric algorithm. |
![]() | Gets the secret key for the symmetric algorithm. |
![]() | Gets the secret key for the symmetric algorithm. |
![]() | Gets the size of the key, in bits, used by the symmetric algorithm. |
![]() | Gets the size of the key, in bits, used by the symmetric algorithm. |
![]() | Gets the block sizes, in bits, that are supported by the symmetric algorithm. |
![]() | Gets the key sizes, in bits, that are supported by the symmetric algorithm. |
![]() | Gets the mode for operation of the symmetric algorithm. |
![]() | Sets the mode for operation of the symmetric algorithm. |
![]() | Gets the padding mode used in the symmetric algorithm. |
![]() | Gets the padding mode used in the symmetric algorithm. |
Name | Description |
---|---|
![]() | Releases all resources used by the SymmetricAlgorithm class. |
![]() | When implemented by a class, creates a symmetric decryptor object with the specified Key property and initialization vector (IV). |
![]() | When implemented by a class, creates a symmetric encryptor object with the specified Key property and initialization vector (IV). |
![]() | Returns if this instance and the value are equal. |
![]() | When implemented by a class, generates a random initialization vector (IV) to use for the algorithm. |
![]() | When implemented ba a class, generates a random key (Key) to use for the algorithm. |
![]() | Returns a semi-unique value that represents this instance. |
![]() | Returns a string representation of this instance. |
![]() | Determines whether the specified key size is valid for the current algorithm. |
A symmetric algorithm is one that uses the same Key and Initialization Vector to both encrypt and decrypt data.
For one of the symmetric algorithms to work, a Key and Initialization Vector needs to be supplied to the Crypto Service Provider.
RijndaelManaged, DESCryptoServiceProvider, RC2CryptoServiceProvider, and TripleDESCryptoServiceProvider are implementations of symmetric algorithms.