SymmetricAlgorithm Methods

SymmetricAlgorithm Methods

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The SymmetricAlgorithm type exposes the following members.

  NameDescription
Public method Clear Releases all resources used by the SymmetricAlgorithm class.
Public method CreateDecryptor Creates a symmetric decryptor object with the current Key property and initialization vector (IV).
Public method CreateDecryptor(Byte(), Byte()) When overridden in a derived class, creates a symmetric decryptor object with the specified Key property and initialization vector (IV).
Public method CreateEncryptor Creates a symmetric encryptor object with the current Key property and initialization vector (IV).
Public method CreateEncryptor(Byte(), Byte()) When overridden in a derived class, creates a symmetric encryptor object with the specified Key property and initialization vector (IV).
Protected method Dispose Releases the unmanaged resources used by the SymmetricAlgorithm and optionally releases the managed resources.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GenerateIV When overridden in a derived class, generates a random initialization vector (IV) to use for the algorithm.
Public method GenerateKey When overridden in a derived class, generates a random key (Key) to use for the algorithm.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method ValidKeySize Determines whether the specified key size is valid for the current algorithm.
Top

  NameDescription
Explicit interface implemetation Private method IDisposable.Dispose Infrastructure. Releases the unmanaged resources used by the SymmetricAlgorithm and optionally releases the managed resources.
Top

Show:
© 2017 Microsoft