Discuss this help topic in SecureBlackbox Forum

TElSymmetricCrypto.EncryptAEAD

TElSymmetricCrypto     See also     


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


Encrypts data in Authenticated Encryption with Associated Data (AEAD) mode.

Declaration

[C#]
    void EncryptAEAD(byte[] AssociatedData, int ADataIndex, int ADataSize, byte[] InBuffer, int InIndex, int InSize, ref byte[] OutBuffer, int OutIndex, ref int OutSize);

[VB.NET]
    Sub EncryptAEAD(ByVal AssociatedData As Byte(), ByVal ADataIndex As Integer, ByVal ADataSize As Integer, 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 EncryptAEAD(AssociatedData : pointer; ADataSize : integer; InBuffer : pointer; InSize : integer; OutBuffer : pointer; var OutSize : integer); virtual;

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

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

[Java]
    int encryptAEAD(byte[] AssociatedData, int ADataIndex, int ADataSize, byte[] InBuffer, int InIndex, int InSize, byte[][] OutBuffer, int OutIndex, int OutSize);

Parameters

  • ADataIndex - the size of the associated data in bytes.
  • ADataSize - the size of the actual data in the AssociatedData buffer.
  • AssociatedData - a buffer containing the Associated Data. The associated data is included in the calculation of the authentication tag, but is not included in the encryption process itself, and is supposed to be distributed/established outside of the AEAD encryption scheme.
  • InBuffer - buffer with data to be encrypted.
  • InIndex - the offset of the data to be encrypted in InBuffer.
  • InSize - the size of the data block (in InBuffer) to be encrypted.
  • OutBuffer - buffer where the encrypted data should be stored.
  • OutIndex - the fffset in OutBuffer, starting from which the data is written.
  • OutSize - the amount of free space in OutBuffer, in bytes.

Description

Call this method to encrypt data in AEAD mode, when Mode is set to one of cmCCM or cmGCM.

See also:     Encrypt     DecryptAEAD     Mode    

Discuss this help topic in SecureBlackbox Forum