IProtectionHandler.GetProtectedContentLength(Int64, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Calculates size (in bytes) of content if it were to be encrypted with this ProtectionHandler
public long GetProtectedContentLength (long unprotectedLength, bool includesFinalBlock);
abstract member GetProtectedContentLength : int64 * bool -> int64
Public Function GetProtectedContentLength (unprotectedLength As Long, includesFinalBlock As Boolean) As Long
Parameters
- unprotectedLength
- Int64
Size (in bytes) of unprotected content
- includesFinalBlock
- Boolean
Describes if the unprotected content in question includes the final block or not. For example, in CBC4k encryption mode, non-final protected blocks are the same size as unprotected blocks, but final protected blocks are larger than their unprotected counterparts.
Returns
Size (in bytes) of protected content.