VerifyHash Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Verifies the specified digital signature against a specified hash value.
Namespace: System.Security.Cryptography
Assembly: System.Security (in System.Security.dll)
Syntax
'Declaration
Public Function VerifyHash ( _
hash As Byte(), _
hashAlgorithm As MechanismType, _
signature As Byte() _
) As Boolean
public bool VerifyHash(
byte[] hash,
MechanismType hashAlgorithm,
byte[] signature
)
public:
bool VerifyHash(
array<unsigned char>^ hash,
MechanismType hashAlgorithm,
array<unsigned char>^ signature
)
member VerifyHash :
hash:byte[] *
hashAlgorithm:MechanismType *
signature:byte[] -> bool
public function VerifyHash(
hash : byte[],
hashAlgorithm : MechanismType,
signature : byte[]
) : boolean
Parameters
- hash
Type: array<System. . :: . .Byte> [] () [] []
The hash value of the data to be verified.
- hashAlgorithm
Type: Microsoft.SPOT.Cryptoki. . :: . .MechanismType
The hash algorithm used to create the hash value of the data.
- signature
Type: array<System. . :: . .Byte> [] () [] []
The digital signature of the data to be verified against the hash value.
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.