Discuss this help topic in SecureBlackbox Forum

TElSymmetricCrypto.DecryptAEAD

TElSymmetricCrypto     See also     


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


Performs the AEAD decryption.

Declaration

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

[VB.NET]
    Sub DecryptAEAD(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 DecryptAEAD(AssociatedData : pointer; ADataSize : integer; InBuffer : pointer; InSize : integer; OutBuffer : pointer; var OutSize : integer); virtual;

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

[PHP]
    void DecryptAEAD(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 decryptAEAD(byte[] AssociatedData, int ADataIndex, int ADataSize, byte[] InBuffer, int InIndex, int InSize, byte[][] OutBuffer, int OutIndex, int OutSize);

Parameters

  • ADataIndex - the index of the first byte of the actual data to be read in the AssociatedData buffer.
  • ADataSize - the number of bytes to be read from 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 containing the encrypted data.
  • InIndex - the index of the first byte of the actual data to be read from InBuffer.
  • InSize - the number of bytes to read from InBuffer.
  • OutBuffer - buffer where the decrypted data is saved.
  • OutIndex - the offset in OutBuffer from which to start writing.
  • OutSize - the amount of free space in OutBuffer, in bytes.

Description

Use this method to decrypt data when Authenticated Encryption with Associated Data (AEAD) is used.

See also:     Decrypt     EncryptAEAD    

Discuss this help topic in SecureBlackbox Forum