99 public virtual byte[]
IV 107 return (
byte[])
IVValue.Clone();
119 IVValue = (
byte[])value.Clone();
127 public virtual byte[]
Key 242 protected virtual void Dispose(
bool disposing)
266 if (legalKeySizes ==
null)
270 for (
int i = 0; i < legalKeySizes.Length; i++)
272 if (legalKeySizes[i].SkipSize == 0)
274 if (legalKeySizes[i].MinSize == bitLength)
280 for (
int j = legalKeySizes[i].MinSize; j <= legalKeySizes[i].
MaxSize; j += legalKeySizes[i].
SkipSize)
295 return Create(
"System.Security.Cryptography.SymmetricAlgorithm");
The exception that is thrown when an error occurs during a cryptographic operation.
virtual KeySizes [] LegalKeySizes
Gets the key sizes, in bits, that are supported by the symmetric algorithm.
virtual void Dispose(bool disposing)
Releases the unmanaged resources used by the T:System.Security.Cryptography.SymmetricAlgorithm and op...
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
byte [] KeyValue
Represents the secret key for the symmetric algorithm.
byte [] IVValue
Represents the initialization vector (P:System.Security.Cryptography.SymmetricAlgorithm....
PaddingMode PaddingValue
Represents the padding mode used in the symmetric algorithm.
virtual ICryptoTransform CreateEncryptor()
Creates a symmetric encryptor object with the current P:System.Security.Cryptography....
static void SuppressFinalize(object obj)
Requests that the common language runtime not call the finalizer for the specified object.
static void Clear(Array array, int index, int length)
Sets a range of elements in an array to the default value of each element type.
KeySizes [] LegalBlockSizesValue
Specifies the block sizes, in bits, that are supported by the symmetric algorithm.
KeySizes [] LegalKeySizesValue
Specifies the key sizes, in bits, that are supported by the symmetric algorithm.
Provides a mechanism for releasing unmanaged resources.To browse the .NET Framework source code for t...
virtual int KeySize
Gets or sets the size, in bits, of the secret key used by the symmetric algorithm.
static object CreateFromName(string name, params object[] args)
Creates a new instance of the specified cryptographic object with the specified arguments.
void Clear()
Releases all resources used by the T:System.Security.Cryptography.SymmetricAlgorithm class.
int MaxSize
Specifies the maximum key size in bits.
virtual ICryptoTransform CreateDecryptor()
Creates a symmetric decryptor object with the current P:System.Security.Cryptography....
virtual int BlockSize
Gets or sets the block size, in bits, of the cryptographic operation.
virtual CipherMode Mode
Gets or sets the mode for operation of the symmetric algorithm.
Provides information about, and means to manipulate, the current environment and platform....
Accesses the cryptography configuration information.
SymmetricAlgorithm()
Initializes a new instance of the T:System.Security.Cryptography.SymmetricAlgorithm class.
virtual byte [] Key
Gets or sets the secret key for the symmetric algorithm.
int KeySizeValue
Represents the size, in bits, of the secret key used by the symmetric algorithm.
virtual KeySizes [] LegalBlockSizes
Gets the block sizes, in bits, that are supported by the symmetric algorithm.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
int SkipSize
Specifies the interval between valid key sizes in bits.
Determines the set of valid key sizes for the symmetric cryptographic algorithms.
virtual int FeedbackSize
Gets or sets the feedback size, in bits, of the cryptographic operation.
CipherMode ModeValue
Represents the cipher mode used in the symmetric algorithm.
Controls the system garbage collector, a service that automatically reclaims unused memory.
bool ValidKeySize(int bitLength)
Determines whether the specified key size is valid for the current algorithm.
int FeedbackSizeValue
Represents the feedback size, in bits, of the cryptographic operation.
void Dispose()
Releases all resources used by the current instance of the T:System.Security.Cryptography....
virtual PaddingMode Padding
Gets or sets the padding mode used in the symmetric algorithm.
Represents the abstract base class from which all implementations of symmetric algorithms must inheri...
int BlockSizeValue
Represents the block size, in bits, of the cryptographic operation.
abstract void GenerateIV()
When overridden in a derived class, generates a random initialization vector (P:System....
CipherMode
Specifies the block cipher mode to use for encryption.
static SymmetricAlgorithm Create()
Creates a default cryptographic object used to perform the symmetric algorithm.
static SymmetricAlgorithm Create(string algName)
Creates the specified cryptographic object used to perform the symmetric algorithm.
virtual byte [] IV
Gets or sets the initialization vector (P:System.Security.Cryptography.SymmetricAlgorithm....
abstract void GenerateKey()
When overridden in a derived class, generates a random key (P:System.Security.Cryptography....
PaddingMode
Specifies the type of padding to apply when the message data block is shorter than the full number of...