Table of Contents

Interface IExternalSigner

Namespace
SimpleSign.Core.Signing
Assembly
SimpleSign.Core.dll

Signs the payload of an ExternalSigningRequest and returns the raw signature bytes (not a CMS or XML container).

public interface IExternalSigner

Remarks

Raw signature encodings: RSA produces the raw signature for the requested PKCS#1 v1.5 or RSASSA-PSS scheme; ECDSA produces an ASN.1 DER SEQUENCE { r, s } (RFC 3279). EdDSA signing is not supported because net8.0 cannot verify its raw external output.

Methods

SignAsync(ExternalSigningRequest, CancellationToken)

Signs the request payload and returns the raw signature bytes.

ValueTask<ReadOnlyMemory<byte>> SignAsync(ExternalSigningRequest request, CancellationToken cancellationToken)

Parameters

request ExternalSigningRequest

The fully resolved signing request.

cancellationToken CancellationToken

Cancellation token.

Returns

ValueTask<ReadOnlyMemory<byte>>

The raw signature bytes.