Location: Symbol Reference > Classes > TJwCryptKey Class > TJwCryptKey Methods > TJwCryptKey.Decrypt Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwCryptKey.Decrypt Method
Pascal
procedure Decrypt(const Hash: TJwHash; FinalBlock: Boolean; Flags: TJwKeyFlagSet; Data: Pointer; var DataLen: Cardinal); overload;
Parameters 
Description 
const Hash: TJwHash 
Specify an instance of TJwHash to decrypt and hash data simultaneously, e.g. for verifying a signature. This parameter can be nil.  
FinalBlock: Boolean 
Use this parameter to indicate that this is the last block in a stream of data to decrypt.  
Flags: TJwKeyFlagSet 
Special decryption flags  
Data: Pointer 
Pointer to the data to be decrypted. The plaintext is also returned in this buffer.  
var DataLen: Cardinal 
The length of the ciphertext. The length of the plaintext is returned here as well. 

This function decrypts a data block. It trashes the encrypted data.

Exceptions 
Description 
will be raised if the underlying Windows call fails. 
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!