Discuss this help topic in SecureBlackbox Forum

TElSymmetricCrypto.FinalizeEncryption

TElSymmetricCrypto     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Finalizes data encryption.

Declaration

[C#]
    void FinalizeEncryption(ref byte[] OutBuffer, int OutIndex, ref int OutSize);

[VB.NET]
    Sub FinalizeEncryption(ByRef OutBuffer As Byte(), ByVal OutIndex As Integer, ByRef OutSize As Integer)

[Pascal]
    procedure FinalizeEncryption(OutBuffer : pointer; var OutSize : integer); virtual;

[C++]
    void FinalizeEncryption(void * OutBuffer, int32_t &OutSize);

[PHP]
    void FinalizeEncryption(TSBPointer|array of byte|string|NULL $OutBuffer, integer &$OutSize)

[Java]
    byte[] finalizeEncryption(int OutSize);
    int finalizeEncryption(byte[][] OutBuffer, int OutIndex, int OutSize);

Parameters

  • OutBuffer - buffer where the encrypted data should be stored.
  • OutIndex - offset in OutBuffer, starting from which the data is written.
  • OutSize - amount of free space in OutBuffer, in bytes.

Description

    Call this method when you have applied EncryptUpdate to all blocks of data. It finalizes the encryption and returns the final chunk of the encrypted data.

See also:     InitializeEncryption     EncryptUpdate    

Discuss this help topic in SecureBlackbox Forum