Discuss this help topic in SecureBlackbox Forum

TElSymmetricCrypto.EncryptUpdate

TElSymmetricCrypto     See also     


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


Encrypts a block of data.

Declaration

[C#]
    void EncryptUpdate(byte[] InBuffer, int InIndex, int InSize, ref byte[] OutBuffer, int OutIndex, ref int OutSize);

[VB.NET]
    Sub EncryptUpdate(ByVal InBuffer As Byte(), ByVal InIndex As Integer, ByVal InSize As Integer, ByRef OutBuffer As Byte(), ByVal OutIndex As Integer, ByRef OutSize As Integer)

[Pascal]
    procedure EncryptUpdate(InBuffer : pointer; InSize : integer; OutBuffer : pointer; var OutSize : integer);

[C++]
    void EncryptUpdate(void * InBuffer, int32_t InSize, void * OutBuffer, int32_t &OutSize);

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

[Java]
    byte[] encryptUpdate(byte[] InBuffer, int InIndex, int InSize, int OutSize);
    int encryptUpdate(byte[] InBuffer, int InIndex, int InSize, byte[][] OutBuffer, int OutIndex, int OutSize);

Parameters

  • InBuffer - buffer containing data to encrypt.
  • InIndex - the offset of the input data in InBuffer.
  • InSize - the size of the input data.
  • OutBuffer - the buffer where the encrypted data should be stored.
  • OutIndex - the offset in OutBuffer, starting from which the data should be written.
  • OutSize - the amount of free space in OutBuffer, in bytes.

Return value

    Returns

Description

    Call this method every time you need to encrypt the next data block of a large data. Remember to call InitializeEncryption before doing any encryption, and FinalizeEncryption when all data blocks have been processed.

See also:     InitializeEncryption     FinalizeEncryption    

Discuss this help topic in SecureBlackbox Forum