Discuss this help topic in SecureBlackbox Forum


TElPublicKeyCrypto     See also     

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

Encrypts the chunk of data


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

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

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

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

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

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


  • InBuffer - data buffer to encrypt
  • InIndex - offset of actual data from the beginning of the array
  • InSize - size of input data in bytes
  • OutBuffer - buffer where to put encrypted data
  • OutIndex - output buffer start offset
  • OutSize - the maximal expected size of output data in bytes
  • InStream - the stream with data to encrypt.
  • OutStream - the stream for encrypted 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 encrypt the chunk of data with a key specified by the KeyMaterial property.

See also:     Decrypt     Sign     SignDetached     Verify     VerifyDetached    

Discuss this help topic in SecureBlackbox Forum