CryptoPressStream:
Delphi / C++Builder Streaming Compression Library
with Strong Encryption


TCPSCryptoParamsEditor.SetInitVector
TCPSCryptoParamsEditor
Top 

Sets an initial vector for the encryption and decryption processes.

Delphi syntax:
procedure
SetInitVector(Vector: Pointer);

C++ syntax:
void __fastcall
SetInitVector(void * Vector);

Description
Call SetInitVector to specify new initial vector for the encryption and decryption.
Initial vector influences encryption and decryption processes, so you should use the same initial vector for encryption and decryption.
You can generate a random initial vector using MakeRandomInitVector method.
You can read MaxInitVectorSize property to get the maximum size of InitVector you need to generate new initial vector.

Note: SetInitVector call does not set UseInitVector to True. You must set UseInitVector to True if you would like to encrypt a database using the vector you set, not the default initial vector.



© AidAim Software CryptoPressStream: Streaming Compression Library Delphi Compression Strong Encryption Library Compression Strea