Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Computes the hash value for the specified region of the input byte array and copies the specified region of the input byte array to the specified region of the output byte array.
Namespace: System.Security.Cryptography
Assembly: System.Security (in System.Security.dll)
Syntax
'Declaration
Public Function TransformBlock ( _
inputBuffer As Byte(), _
inputOffset As Integer, _
inputCount As Integer, _
outputBuffer As Byte(), _
outputOffset As Integer _
) As Integer
public int TransformBlock(
byte[] inputBuffer,
int inputOffset,
int inputCount,
byte[] outputBuffer,
int outputOffset
)
public:
virtual int TransformBlock(
array<unsigned char>^ inputBuffer,
int inputOffset,
int inputCount,
array<unsigned char>^ outputBuffer,
int outputOffset
) sealed
abstract TransformBlock :
inputBuffer:byte[] *
inputOffset:int *
inputCount:int *
outputBuffer:byte[] *
outputOffset:int -> int
override TransformBlock :
inputBuffer:byte[] *
inputOffset:int *
inputCount:int *
outputBuffer:byte[] *
outputOffset:int -> int
public final function TransformBlock(
inputBuffer : byte[],
inputOffset : int,
inputCount : int,
outputBuffer : byte[],
outputOffset : int
) : int
Parameters
- inputBuffer
Type: array<System. . :: . .Byte> [] () [] []
The input to compute the hash code for.
- inputOffset
Type: System. . :: . .Int32
The offset into the input byte array from which to begin using data.
- inputCount
Type: System. . :: . .Int32
The number of bytes in the input byte array to use as data.
- outputBuffer
Type: array<System. . :: . .Byte> [] () [] []
A copy of the part of the input array used to compute the hash code.
- outputOffset
Type: System. . :: . .Int32
The offset into the output byte array from which to begin writing data.
Return Value
Type: System. . :: . .Int32
The number of bytes written.
Implements
Remarks
You must call the TransformBlock method before calling the TransformFinalBlock method. You must call both methods before you retrieve the final hash value.
To retrieve the final hash value after calling the TransformFinalBlock method, get the byte array contained within the Hash property.
Calling the TransformBlock method with different input and output arrays results in an IOException.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.