SymmetricAlgorithm

SymmetricAlgorithm


Provides a standard interface for utilizing symmetric algorithms.


Remarks

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.

See Also

Project VBCorLib Overview

Public:

Types:

NameDescription
 CipherModeA defined set of cipher modes the algorithms can use. 
 PaddingModeA 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. 

Properties:

NameDescription
 BlockSize (get)Returns the block size, in bits, used by the cryptographic operation. 
 BlockSize (let)Sets the block size, in bits, used by the cryptographic operation. 
 FeedbackSize (get)Returns the feedback size, in bits, used by the cryptographic operation. 
 FeedbackSize (let)Sets the feedback size, in bits, used by the cryptographic operation. 
 IV (get)Returns the Initialization Vector used by the cryptographic operation. 
 IV (let)Sets the Initialization Vector used by the cryptographic operation. 
 Key (get)Returns the secret key used by the cryptographic operation. 
 Key (let)Sets the secret key to be used by the cryptographic operation. 
 KeySize (get)Returns the size of the key, in bits, used by the cryptographic operation. 
 KeySize (let)Sets the size of the key, in bits. 
 LegalBlockSizes (get)Returns a list of legal block sizes. 
 LegalKeySizes (get)Returns a list of legal key sizes. 
 Mode (get)Returns the mode the current algoritm is set to. 
 Mode (let)Sets the mode the current algorithm is set to. 
 Padding (get)Returns the padding to be used by the algorithm. 
 Padding (let)Sets the padding to be used by the algorithm. 

Methods:

NameDescription
 ClearReleases all resources. 
 CreateDecryptorCreates a new decryptor using the Triple Data Encryption Standard algorithm. 
 CreateEncryptorCreates a new encryptor using the Triple Data Ecryption Standard algorithm. 
 EqualsReturns if this instance and the value are equal. 
 GenerateIVGenerates a new Initialization Vector array. 
 GenerateKeyGenerates a new Key based on the key size. 
 GetHashCodeReturns a semi-unique value that represents this instance. 
 ToStringReturns a string representation of this instance. 
 ValidKeySizeChecks if the specific number of bits is a valid key size.