The Cast5Managed type exposes the following members.

Constructors

  NameDescription
Public methodCast5Managed
Initializes a new instance of the Cast5Managed class.

Methods

  NameDescription
Public methodClear
Releases all resources used by the SymmetricAlgorithm class.
(Inherited from SymmetricAlgorithm.)
Public methodCreateDecryptor()()()()
Creates a symmetric decryptor object with the current Key property and initialization vector (IV).
(Inherited from SymmetricAlgorithm.)
Public methodCreateDecryptor(array<Byte>[]()[][], array<Byte>[]()[][])
Creates a symmetric decryptor object with the specified Key property and initialization vector (IV).
(Overrides SymmetricAlgorithm..::..CreateDecryptor(array<Byte>[]()[][], array<Byte>[]()[][]).)
Public methodCreateEncryptor()()()()
Creates a symmetric encryptor object with the current Key property and initialization vector (IV).
(Inherited from SymmetricAlgorithm.)
Public methodCreateEncryptor(array<Byte>[]()[][], array<Byte>[]()[][])
Creates a symmetric encryptor object with the specified Key property and initialization vector (IV).
(Overrides SymmetricAlgorithm..::..CreateEncryptor(array<Byte>[]()[][], array<Byte>[]()[][]).)
Public methodDispose()()()()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the SymmetricAlgorithm and optionally releases the managed resources.
(Overrides SymmetricAlgorithm..::..Dispose(Boolean).)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Releases unmanaged resources and performs other cleanup operations before the Cast5Managed is reclaimed by garbage collection.
(Overrides Object..::..Finalize()()()().)
Public methodGenerateIV
Generates a random initialization vector (IV) to use for the algorithm.
(Overrides SymmetricAlgorithm..::..GenerateIV()()()().)
Public methodGenerateKey
Generates a random key (Key) to use for the algorithm.
(Overrides SymmetricAlgorithm..::..GenerateKey()()()().)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodTransformBlock
Transforms the specified region of the input byte array and copies the resulting transform to the specified region of the output byte array.
Public methodTransformFinalBlock
Transforms the specified region of the specified byte array.
Public methodValidKeySize
Determines whether the specified key size is valid for the current algorithm.
(Inherited from SymmetricAlgorithm.)

Fields

  NameDescription
Public fieldStatic memberBLOCK_SIZE
The block size in bytes.
Protected fieldBlockSizeValue
Represents the block size, in bits, of the cryptographic operation.
(Inherited from SymmetricAlgorithm.)
Protected fieldFeedbackSizeValue
Represents the feedback size, in bits, of the cryptographic operation.
(Inherited from SymmetricAlgorithm.)
Protected fieldIVValue
Represents the initialization vector (IV) for the symmetric algorithm.
(Inherited from SymmetricAlgorithm.)
Protected fieldKeySizeValue
Represents the size, in bits, of the secret key used by the symmetric algorithm.
(Inherited from SymmetricAlgorithm.)
Protected fieldKeyValue
Represents the secret key for the symmetric algorithm.
(Inherited from SymmetricAlgorithm.)
Protected fieldLegalBlockSizesValue
Specifies the block sizes, in bits, that are supported by the symmetric algorithm.
(Inherited from SymmetricAlgorithm.)
Protected fieldLegalKeySizesValue
Specifies the key sizes, in bits, that are supported by the symmetric algorithm.
(Inherited from SymmetricAlgorithm.)
Public fieldStatic memberMAX_KEY_LENGTH
The key size for this algorithm is 128 bits (16 BYTES)
Protected fieldModeValue
Represents the cipher mode used in the symmetric algorithm.
(Inherited from SymmetricAlgorithm.)
Protected fieldPaddingValue
Represents the padding mode used in the symmetric algorithm.
(Inherited from SymmetricAlgorithm.)

Properties

  NameDescription
Public propertyBlockSize
Gets or sets the block size, in bits, of the cryptographic operation.
(Inherited from SymmetricAlgorithm.)
Public propertyCanReuseTransform
Gets a value indicating whether the current transform can be reused.
Public propertyCanTransformMultipleBlocks
Gets a value indicating whether multiple blocks can be transformed.
Public propertyFeedbackSize
Gets or sets the feedback size, in bits, of the cryptographic operation.
(Inherited from SymmetricAlgorithm.)
Public propertyInputBlockSize
Gets the input block size.
Public propertyIV
Gets or sets the initialization vector (IV) for the symmetric algorithm.
(Overrides SymmetricAlgorithm..::..IV.)
Public propertyKey
Gets or sets the secret key for the symmetric algorithm.
(Overrides SymmetricAlgorithm..::..Key.)
Public propertyKeySize
Gets or sets the size, in bits, of the secret key used by the symmetric algorithm.
(Overrides SymmetricAlgorithm..::..KeySize.)
Public propertyLegalBlockSizes
Gets the block sizes, in bits, that are supported by the symmetric algorithm.
(Inherited from SymmetricAlgorithm.)
Public propertyLegalKeySizes
Gets the key sizes, in bits, that are supported by the symmetric algorithm.
(Inherited from SymmetricAlgorithm.)
Public propertyMode
Gets or sets the mode for operation of the symmetric algorithm.
(Overrides SymmetricAlgorithm..::..Mode.)
Public propertyOutputBlockSize
Gets the output block size.
Public propertyPadding
Gets or sets the padding mode used in the symmetric algorithm.
(Inherited from SymmetricAlgorithm.)

See Also