# SymmetricAlgorithm Members

**.NET Framework 1.1**

#### Public Constructors

SymmetricAlgorithm Constructor | Initializes a new instance of SymmetricAlgorithm. |

#### Public Properties

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

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

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

Key | Gets or sets the secret key for the symmetric algorithm. |

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

LegalBlockSizes | Gets the block sizes that are supported by the symmetric algorithm. |

LegalKeySizes | Gets the key sizes that are supported by the symmetric algorithm. |

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

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

#### Public Methods

Clear | Releases all resources used by the SymmetricAlgorithm. |

Create | Overloaded. Creates an instance of a cryptographic object used to perform the symmetric algorithm. |

CreateDecryptor | Overloaded. Creates a symmetric decryptor object. |

CreateEncryptor | Overloaded. Creates a symmetric encryptor object. |

Equals (inherited from Object) | Overloaded. Determines whether two Object instances are equal. |

GenerateIV | When overridden in a derived class, generates a random initialization vector (IV) to be used for the algorithm. |

GenerateKey | When overridden in a derived class, generates a random Key to be used for the algorithm. |

GetHashCode (inherited from Object) | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |

GetType (inherited from Object) | Gets the Type of the current instance. |

ToString (inherited from Object) | Returns a String that represents the current Object. |

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

#### Protected Fields

BlockSizeValue | Represents the block size of the cryptographic operation in bits. |

FeedbackSizeValue | Represents the feedback size of the cryptographic operation in bits. |

IVValue | Represents the initialization vector (IV) for the symmetric algorithm. |

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

KeyValue | Represents the secret key for the symmetric algorithm. |

LegalBlockSizesValue | Specifies the block sizes that are supported by the symmetric algorithm. |

LegalKeySizesValue | Specifies the key sizes that are supported by the symmetric algorithm. |

ModeValue | Represents the cipher mode used in the symmetric algorithm. |

PaddingValue | Represents the padding mode used in the symmetric algorithm. |

#### Protected Methods

Dispose | Releases the unmanaged resources used by the SymmetricAlgorithm and optionally releases the managed resources. |

Finalize | Overridden. Releases the unmanaged resources used by the SymmetricAlgorithm.
In C# and C++, finalizers are expressed using destructor syntax. |

MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object. |

#### See Also

SymmetricAlgorithm Class | System.Security.Cryptography Namespace

Show: