Table of Contents

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

message Stream
namespace string
cancellationToken CancellationToken

Returns

Task<bool>

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

message Stream

The message that was signed, read to its end.

namespace string

What the signature must be for.

expectedKey SshPublicKey

The key that must have signed.

cancellationToken CancellationToken

Cancels reading the message.

Returns

Task<bool>