Method VerifyAsync
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
VerifyAsync(Stream, string, CancellationToken)
Like Verify(ReadOnlySpan<byte>, string), over what message reads to its end.
public Task<bool> VerifyAsync(Stream message, string @namespace, CancellationToken cancellationToken = default)
Parameters
messageStreamnamespacestringcancellationTokenCancellationToken
Returns
VerifyAsync(Stream, string, SshPublicKey, CancellationToken)
Like Verify(ReadOnlySpan<byte>, string, SshPublicKey), over what message reads to its end.
public Task<bool> VerifyAsync(Stream message, string @namespace, SshPublicKey expectedKey, CancellationToken cancellationToken = default)
Parameters
messageStreamThe message that was signed, read to its end.
namespacestringWhat the signature must be for.
expectedKeySshPublicKeyThe key that must have signed.
cancellationTokenCancellationTokenCancels reading the message.