Discuss this help topic in SecureBlackbox Forum

TElECIESCrypto.Decrypt

TElECIESCrypto     See also     


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


Decrypts data.

Declaration

[C#]
    bool Decrypt(System.IO.Stream InStream, System.IO.Stream OutStream, int InCount);
    bool Decrypt(byte[] InBuffer, int InIndex, int InSize, ref byte[] OutBuffer, int OutIndex, ref int OutSize);

[VB.NET]
    Function Decrypt(ByVal InStream As System.IO.Stream, ByVal OutStream As System.IO.Stream, ByVal InCount As Integer) As Boolean
    Function Decrypt(ByVal InBuffer As Byte(), ByVal InIndex As Integer, ByVal InSize As Integer, ByRef OutBuffer As Byte(), ByVal OutIndex As Integer, ByRef OutSize As Integer) As Boolean

[Pascal]
    function Decrypt(InBuffer : pointer; InSize : integer; OutBuffer : pointer; var OutSize : integer) : boolean; overload;
    function Decrypt(InStream, OutStream : TStream; InCount : integer = 0) : boolean; overload;
    function Decrypt(const InBuffer : ByteArray; InIndex : integer; InSize : integer; var OutBuffer : ByteArray; OutIndex : integer; var OutSize : integer) : boolean; {$ifndef SB_NET}overload;{$endif}

[C++]
    bool Decrypt(void * InBuffer, int32_t InSize, void * OutBuffer, int32_t &OutSize);
    bool Decrypt(TStream &InStream, TStream &OutStream, int32_t InCount);
    bool Decrypt(TStream *InStream, TStream *OutStream, int32_t InCount);

[PHP]
    bool Decrypt(TSBPointer|array of byte|string|NULL $InBuffer, integer $InSize, TSBPointer|array of byte|string|NULL $OutBuffer, integer &$OutSize)
    bool Decrypt(TStream $InStream, TStream $OutStream, integer $InCount)

[Java]
    boolean decrypt(byte[] InBuffer, int InIndex, int InSize, byte[][] OutBuffer, int OutIndex, TSBInteger OutSize);
    boolean decrypt(TElStream InStream, TElStream OutStream, int InCount);
    boolean decrypt(InputStream InStream, OutputStream OutStream, int InCount);

Parameters

  • InBuffer - encrypted data.
  • InIndex - offset of the encrypted data in InBuffer.
  • InSize - number of bytes to be read from InBuffer.
  • OutBuffer - decrypted data will be saved to this buffer.
  • OutIndex - offset in the OutBuffer where to start writing decrypted data.
  • OutSize - the amount of free space available in OutBuffer.
  • InStream - the stream with encrypted data.
  • InCount - the number of bytes to be read from InStream.
  • OutStream - the stream where the decrypted data should be saved.

Return value

Returns True on success and False otherwise.

Description

Use this method to decrypt data when you have all data at hand. It is a shorthand for InitializeDecryption / DecryptUdpdate / FinalizeDecryption sequence of calls.

See also:     Encrypt     OnProgress    

Discuss this help topic in SecureBlackbox Forum