IKey.VerifyAsync(Byte[], Byte[], String, CancellationToken) 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.
Verifies the specified signature value
public System.Threading.Tasks.Task<bool> VerifyAsync (byte[] digest, byte[] signature, string algorithm, System.Threading.CancellationToken token);
abstract member VerifyAsync : byte[] * byte[] * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function VerifyAsync (digest As Byte(), signature As Byte(), algorithm As String, token As CancellationToken) As Task(Of Boolean)
Parameters
- digest
- System.Byte[]
The digest
- signature
- System.Byte[]
The signature value
- algorithm
- System.String
The algorithm to use
- token
- System.Threading.CancellationToken
Cancellation token
Returns
- System.Threading.Tasks.Task<System.Boolean>
A bool indicating whether the signature was successfully verified