VerifyData Method (Byte[], Int32, Int32, Byte[])
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Verifies a digital signature for the specified length of data, beginning at the specified offset.
Namespace: System.Security.Cryptography
Assembly: System.Security (in System.Security.dll)
Syntax
'Declaration
Public Function VerifyData ( _
data As Byte(), _
offset As Integer, _
count As Integer, _
signature As Byte() _
) As Boolean
public bool VerifyData(
byte[] data,
int offset,
int count,
byte[] signature
)
public:
bool VerifyData(
array<unsigned char>^ data,
int offset,
int count,
array<unsigned char>^ signature
)
member VerifyData :
data:byte[] *
offset:int *
count:int *
signature:byte[] -> bool
public function VerifyData(
data : byte[],
offset : int,
count : int,
signature : byte[]
) : boolean
Parameters
- data
Type: array<System. . :: . .Byte> [] () [] []
The data that was signed.
- offset
Type: System. . :: . .Int32
The location in the data at which the signed data begins.
- count
Type: System. . :: . .Int32
The length of the data, in characters, following offset that will be signed.
- signature
Type: array<System. . :: . .Byte> [] () [] []
The signature to verify.
Return Value
Type: System. . :: . .Boolean
true if the signature is valid; otherwise, false.
.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.