System.Security.Cryptography.SymmetricAlgorithm Members

The members of System.Security.Cryptography.SymmetricAlgorithm are listed below.

See Also: Inherited members from System.Object

Protected Constructors

Initializes a new instance of the System.Security.Cryptography.SymmetricAlgorithm class.

Protected Fields

BlockSizeValueint.

Represents the block size, in bits, of the cryptographic operation.

FeedbackSizeValueint.

Represents the feedback size, in bits, of the cryptographic operation.

IVValuebyte[].

Represents the initialization vector (SymmetricAlgorithm.IV) for the symmetric algorithm.

KeySizeValueint.

Represents the size, in bits, of the secret key used by the symmetric algorithm.

KeyValuebyte[].

Represents the secret key for the symmetric algorithm.

LegalBlockSizesValueKeySizes[].

Specifies the block sizes, in bits, that are supported by the symmetric algorithm.

LegalKeySizesValueKeySizes[].

Specifies the key sizes, in bits, that are supported by the symmetric algorithm.

ModeValueCipherMode.

Represents the cipher mode used in the symmetric algorithm.

PaddingValuePaddingMode.

Represents the padding mode used in the symmetric algorithm.

Public Properties

BlockSizeint.

Gets or sets the block size, in bits, of the cryptographic operation.

FeedbackSizeint.

Gets or sets the feedback size, in bits, of the cryptographic operation.

IVbyte[].

Gets or sets the initialization vector (SymmetricAlgorithm.IV) for the symmetric algorithm.

Keybyte[].

Gets or sets the secret key for the symmetric algorithm.

KeySizeint.

Gets or sets the size, in bits, of the secret key used by the symmetric algorithm.

[read-only]
LegalBlockSizesKeySizes[].

Gets the block sizes, in bits, that are supported by the symmetric algorithm.

[read-only]
LegalKeySizesKeySizes[].

Gets the key sizes, in bits, that are supported by the symmetric algorithm.

ModeCipherMode.

Gets or sets the mode for operation of the symmetric algorithm.

PaddingPaddingMode.

Gets or sets the padding mode used in the symmetric algorithm.

Public Methods

Clear()

Releases all resources used by the System.Security.Cryptography.SymmetricAlgorithm class.

static
Create() : SymmetricAlgorithm

Creates a default cryptographic object used to perform the symmetric algorithm.

static
Create(string) : SymmetricAlgorithm

Creates the specified cryptographic object used to perform the symmetric algorithm.

CreateDecryptor() : ICryptoTransform

Creates a symmetric decryptor object with the current SymmetricAlgorithm.Key property and initialization vector (SymmetricAlgorithm.IV).

abstract
CreateDecryptor(byte[], byte[]) : ICryptoTransform

When overridden in a derived class, creates a symmetric decryptor object with the specified SymmetricAlgorithm.Key property and initialization vector (SymmetricAlgorithm.IV).

CreateEncryptor() : ICryptoTransform

Creates a symmetric encryptor object with the current SymmetricAlgorithm.Key property and initialization vector (SymmetricAlgorithm.IV).

abstract
CreateEncryptor(byte[], byte[]) : ICryptoTransform

When overridden in a derived class, creates a symmetric encryptor object with the specified SymmetricAlgorithm.Key property and initialization vector (SymmetricAlgorithm.IV).

Dispose()

Releases all resources used by the current instance of the System.Security.Cryptography.SymmetricAlgorithm class.

Finalize()
Documentation for this section has not yet been entered.
abstract
GenerateIV()

When overridden in a derived class, generates a random initialization vector (SymmetricAlgorithm.IV) to use for the algorithm.

abstract
GenerateKey()

When overridden in a derived class, generates a random key (SymmetricAlgorithm.Key) to use for the algorithm.

ValidKeySize(int) : bool

Determines whether the specified key size is valid for the current algorithm.

Protected Methods

Dispose(bool)

Releases the unmanaged resources used by the System.Security.Cryptography.SymmetricAlgorithm and optionally releases the managed resources.

Explicitly Implemented Interface Members

IDisposable.Dispose

Releases the unmanaged resources used by the System.Security.Cryptography.SymmetricAlgorithm and optionally releases the managed resources.