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

This function encrypts a data block. It trashes the original 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!