CryptoAPITransform

CryptoAPITransform


Utilizes the Windows CryptoAPI cryptography services to perform data transformations.


Implements:

ICryptoTransform 
IObject 

Public:

Properties:

NameDescription
 CanReuseTransform (get) Gets a value indicating if the current transfrom can be reused.  
 CanTransformMultipleBlocks (get) Gets a value indicating whether multiple blocks can be transformed.  
 InputBlockSize (get) Gets the size of one block of data that is to be processed.  
 KeyHandle (get) Gets the actual handle to a key created by the CryptoAPI service.  
 OutputBlockSize (get) Gets the size of the resulting block of data after an input block of data has been processed.  

Methods:

NameDescription
 Clear Releases the key and context of the CryptoAPI provider.  
 Equals Returns a boolean indicating if the value and this object instance are the same instance.  
 GetHashCode Returns a psuedo-unique number used to help identify this object in memory. The current method is to return the value obtained from ObjPtr. If a different method needs to be impelmented then change the method here in this function.

An override might be necessary if the hashcode should be derived from a value contained within the class.  

 Reset Resets the transform so a new set of data can be processed.  
 ToString Returns a string representation of this object instance. The default method simply returns the application name and class name in which this class resides.

A Person class may return the persons name instead.  

 TransformBlock Processes a set of data, encrypting or decrypting it.  
 TransformFinalBlock Processes a set of data adding any padding needed to complete the process.  

Remarks

This class is used to support three cryptographic service providers within the CryptoAPI: DES, TripleDES, and RC2.

See Also

Project CorLib Overview

Class CryptoAPITransform Overview

DESCryptoServiceProvider

TripleDESCryptoServiceProvider

RC2CryptoServiceProvider