Location: Symbol Reference > Classes > TJwCryptKey Class
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwCryptKey Class
Pascal
TJwCryptKey = class;

TJwCryptKey encapsulates CAPI keys. Keys for symmetric and asymmetric algorithms are supported. They can be used for hash computing. Keys can be created by retrieving the user keys of a CSP, randomly generating a new key, deriving from base data and importing from a data blob.

 
Name 
Description 
 
Duplicates an existing key.  
 
Derives a key from a specified seed  
 
Destroys the key 
 
Randomly generates a key  
 
Randomly generates a public/private key pair and stores it in the key container of the specified CSP. The new key replaces the old key (if existing) in the container. Thus, this constructor is generally used in the following way:  
 
Gets one of the two standard key pairs of the specified CSP.  
 
Imports a key from a data blob  
Name 
Description 
The following tables list the members exposed by TJwCryptKey. 
The methods of the TJwCryptKey class are listed here. 
The properties of the TJwCryptKey class are listed here. 
 
Name 
Description 
 
This function decrypts a data block. It trashes the encrypted data.  
 
This function encrypts a data block. It trashes the original data.  
 
This is the overview for the ExportKey method overload. 
 
FreeBuffer frees buffer returned by previous calls to ExportKey .  
 
GetExportKeyLength can be used to determine the length of the export blob for subsequent calls to ExportKey .  
 
This function can be used to retrieve certain parameters of the key. It is mostly for internal use. See http://msdn2.microsoft.com/en-us/library/aa379949.aspx for more information. 
 
Name 
Description 
 
The block size of the key. This is zero for stream ciphers. If the key is a public/private key pair, the encryption granularity is returned. 
 
The handle to the key 
 
The length of the key, as specified upon key creation 
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!