CryptoAPITransform.TransformFinalBlock(Byte[], Int32, Int32) 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.
Computes the transformation for the specified region of the specified byte array.
public:
virtual cli::array <System::Byte> ^ TransformFinalBlock(cli::array <System::Byte> ^ inputBuffer, int inputOffset, int inputCount);
public byte[] TransformFinalBlock (byte[] inputBuffer, int inputOffset, int inputCount);
abstract member TransformFinalBlock : byte[] * int * int -> byte[]
override this.TransformFinalBlock : byte[] * int * int -> byte[]
Public Function TransformFinalBlock (inputBuffer As Byte(), inputOffset As Integer, inputCount As Integer) As Byte()
Parameters
- inputBuffer
- Byte[]
The input on which to perform the operation on.
- inputOffset
- Int32
The offset into the byte array from which to begin using data from.
- inputCount
- Int32
The number of bytes in the byte array to use as data.
Returns
The computed transformation.
Implements
Exceptions
The inputBuffer
parameter is null
.
The inputOffset
parameter is less than zero.
-or-
The inputCount
parameter is less than zero.
-or-
The length of the input buffer is less than the sum of the input offset and the input count.
The PKCS7 padding is invalid.
The inputOffset
parameter is out of range. This parameter requires a non-negative number.
Examples
The following code example demonstrates how to call the TransformFinalBlock method to transform the final block of bytes. This code example is part of a larger example provided for the CryptoAPITransform class.
array<Byte>^finalBytes = cryptoTransform->TransformFinalBlock(
sourceBytes, currentPosition, sourceByteLength - currentPosition );
byte[] finalBytes = cryptoTransform.TransformFinalBlock(
sourceBytes,
currentPosition,
sourceByteLength - currentPosition);
Dim finalBytes() As Byte
finalBytes = cryptoTransform.TransformFinalBlock( _
sourceBytes, _
currentPosition, _
sourceByteLength - currentPosition)
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기