Table of Contents

Class CatalogueSignatureVerifier

Namespace
EncDotNet.S100.ExchangeSets
Assembly
EncDotNet.S100.ExchangeSets.dll

Checks an exchange catalogue against the CATALOG.SIGN file beside it.

public static class CatalogueSignatureVerifier
Inheritance
CatalogueSignatureVerifier
Inherited Members

Remarks

S-100 Edition 5.2.1 Part 15 §15-8.11.2. CATALOG.SIGN is a standalone signature that names the file it signs; the signature is ECDSA P-384 over the SHA-384 of that file's exact bytes (§15-8.7), checked against the certificates the signature file carries.

Fields

SignatureFileName

The standalone catalogue signature file name.

public const string SignatureFileName = "CATALOG.SIGN"

Field Value

string

Methods

VerifyAsync(IAssetSource, TrustAnchorOptions, CancellationToken)

Checks the catalogue in source against its CATALOG.SIGN. Never throws for a missing, malformed or invalid signature; the result says what was found.

public static Task<CatalogueSignatureVerificationResult> VerifyAsync(IAssetSource source, TrustAnchorOptions trustAnchors, CancellationToken cancellationToken = default)

Parameters

source IAssetSource

The exchange set, rooted at the folder that holds the catalogue.

trustAnchors TrustAnchorOptions

The Scheme Administrator trust configuration.

cancellationToken CancellationToken

A cancellation token.

Returns

Task<CatalogueSignatureVerificationResult>

The outcome of the check.