IProtectionHandler.EncryptBuffer(Int64, Byte[], Byte[], Boolean) Method

Definition

Encrypt a buffer

public long EncryptBuffer (long offsetFromStart, byte[] inputBuffer, byte[] outputBuffer, bool isFinal);
abstract member EncryptBuffer : int64 * byte[] * byte[] * bool -> int64
Public Function EncryptBuffer (offsetFromStart As Long, inputBuffer As Byte(), outputBuffer As Byte(), isFinal As Boolean) As Long

Parameters

offsetFromStart
Int64

Relative position of inputBuffer from the very beginning of the cleartext content

inputBuffer
Byte[]

Buffer of cleartext content that will be encrypted

outputBuffer
Byte[]

Buffer into which encrypted content will be copied

isFinal
Boolean

If input buffer contains the final cleartext bytes or not

Returns

Actual size (in bytes) of encrypted content.

Applies to