Discuss this help topic in SecureBlackbox Forum


TElPublicKeyCrypto     See also     

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

Decrypts the chunk of data


    void Decrypt(byte[] InBuffer, int InIndex, int InSize, ref byte[] OutBuffer, int OutIndex, ref int OutSize);
    void Decrypt(System.IO.Stream InStream, System.IO.Stream OutStream, int Count);

    Sub 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)
    Sub Decrypt(ByVal InStream As System.IO.Stream, ByVal OutStream As System.IO.Stream, ByVal Count As Integer)

    procedure Decrypt(InBuffer: pointer; InSize: integer; OutBuffer: pointer; var OutSize: integer);
    procedure Decrypt(InStream, OutStream : TStream; Count : integer = 0);

    void Decrypt(void * InBuffer, int32_t InSize, void * OutBuffer, int32_t &OutSize);
    void Decrypt(TStream &InStream, TStream &OutStream, int32_t Count);
    void Decrypt(TStream *InStream, TStream *OutStream, int32_t Count);

    void Decrypt(TSBPointer|array of byte|string|NULL $InBuffer, integer $InSize, TSBPointer|array of byte|string|NULL $OutBuffer, integer &$OutSize)
    void Decrypt(TStream $InStream, TStream $OutStream, integer $Count)

    int decrypt(byte[] InBuffer, int InIndex, int InSize, byte[] OutBuffer, int OutIndex, int OutSize);
    void decrypt(InputStream InStream, OutputStream OutStream, int Count);


  • InBuffer - data buffer to decrypt
  • InIndex - offset of actual data from the beginning of the array
  • InSize - size of input data in bytes
  • OutBuffer - buffer where to put decrypted data
  • OutIndex - output buffer start offset
  • OutSize - the maximal expected size of output data in bytes
  • InStream - the stream with data to decrypt.
  • OutStream - the stream for decrypted data.
  • Count - the number of bytes to be read. If this parameter is zero, the whole stream is processed.
    Default value is 0.


     Use this method to decrypt a of data with a key specified by the KeyMaterial property.

See also:     Encrypt     Sign     SignDetached     Verify     VerifyDetached    

Discuss this help topic in SecureBlackbox Forum