Edit

Share via


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

Definition

Decrypt a buffer

public long DecryptBuffer (long offsetFromStart, byte[] inputBuffer, byte[] outputBuffer, bool isFinal);
abstract member DecryptBuffer : int64 * byte[] * byte[] * bool -> int64
Public Function DecryptBuffer (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 encrypted content

inputBuffer
Byte[]

Buffer of encrypted content that will be decrypted

outputBuffer
Byte[]

Buffer into which decrypted content will be copied

isFinal
Boolean

If input buffer contains the final cleartext bytes or not

Returns

Actual size (in bytes) of decrypted content.

Applies to