ECDsaCng.VerifyHash 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.
Overloads
VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) |
Verifies that a digital signature is appropriate for the current key and provided data hash. |
VerifyHash(Byte[], Byte[]) |
Verifies that a digital signature is appropriate for the current key and provided data hash. |
VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
Verifies that a digital signature is appropriate for the current key and provided data hash.
public:
override bool VerifyHash(ReadOnlySpan<System::Byte> hash, ReadOnlySpan<System::Byte> signature);
public override bool VerifyHash (ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature);
override this.VerifyHash : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> bool
Public Overrides Function VerifyHash (hash As ReadOnlySpan(Of Byte), signature As ReadOnlySpan(Of Byte)) As Boolean
Parameters
- hash
- ReadOnlySpan<Byte>
The hash value of the data to be verified.
- signature
- ReadOnlySpan<Byte>
The digital signature of the data to be verified against the hash value.
Returns
true
if the signature is valid; otherwise, false
.
Applies to
VerifyHash(Byte[], Byte[])
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
Verifies that a digital signature is appropriate for the current key and provided data hash.
public:
override bool VerifyHash(cli::array <System::Byte> ^ hash, cli::array <System::Byte> ^ signature);
public override bool VerifyHash (byte[] hash, byte[] signature);
[System.Security.SecurityCritical]
public override bool VerifyHash (byte[] hash, byte[] signature);
override this.VerifyHash : byte[] * byte[] -> bool
[<System.Security.SecurityCritical>]
override this.VerifyHash : byte[] * byte[] -> bool
Public Overrides Function VerifyHash (hash As Byte(), signature As Byte()) As Boolean
Parameters
- hash
- Byte[]
The hash value of the data to be verified.
- signature
- Byte[]
The digital signature of the data to be verified against the hash value.
Returns
true
if the signature is valid; otherwise, false
.
- Attributes
Exceptions
hash
or signature
is null
.