Encrypts byte buffers.
Namespace: LLCryptoLib.CryptoAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
C# |
---|
public int Encrypt( byte[] dataIn, int posIn, byte[] dataOut, int posOut, int count ) |
Visual Basic |
---|
Public Function Encrypt ( _ dataIn As Byte(), _ posIn As Integer, _ dataOut As Byte(), _ posOut As Integer, _ count As Integer _ ) As Integer |
Visual C++ |
---|
public: int Encrypt( array<unsigned char>^ dataIn, int posIn, array<unsigned char>^ dataOut, int posOut, int count ) |
Parameters
- dataIn
- Type: array<System..::..Byte>[]()[][]
The input buffer.
- posIn
- Type: System..::..Int32
Where to start reading in the input buffer.
- dataOut
- Type: array<System..::..Byte>[]()[][]
The output buffer.
- posOut
- Type: System..::..Int32
Where to start writing to the output buffer.
- count
- Type: System..::..Int32
The number ob bytes to encrypt.
Return Value
The number of bytes processed.
Remarks
Use this method to encrypt bytes from one array to another one. You can also
use the same array for input and output. Note that the number of bytes must be adjusted
to the block size of the algorithm. Overlapping bytes will not be encrypted. No check for
buffer overflows are made.