Table of Contents

Class S57FileVerificationResult

Namespace
EncDotNet.S57.ExchangeSets
Assembly
EncDotNet.S57.dll

The verification result for a single file referenced by an S-57 exchange set catalogue.

public sealed class S57FileVerificationResult
Inheritance
S57FileVerificationResult
Inherited Members

Remarks

The checksum and digital-signature outcomes are tracked as independent dimensions: a file may have a valid CRC checksum yet carry no signature (the common case for unencrypted ENCs), or vice versa. Inspect ChecksumOutcome and SignatureOutcome separately.

Properties

ActualCrc

Gets the CRC checksum computed from the file on disk, if it was computed.

public string? ActualCrc { get; init; }

Property Value

string

ChecksumOutcome

Gets the outcome of CRC checksum verification for this file.

public required S57VerificationOutcome ChecksumOutcome { get; init; }

Property Value

S57VerificationOutcome

Remarks

Expected values are Ok, NoChecksum, ChecksumMismatch, FileMissing, or Error.

Detail

Gets an optional detail message (e.g. an exception message on Error).

public string? Detail { get; init; }

Property Value

string

ExpectedCrc

Gets the CRC checksum declared in the catalogue, if any.

public string? ExpectedCrc { get; init; }

Property Value

string

FileName

Gets the name of the file as declared in the catalogue (CATD FILE subfield).

public required string FileName { get; init; }

Property Value

string

SignatureOutcome

Gets the outcome of digital-signature (S-63) verification for this file.

public S57VerificationOutcome SignatureOutcome { get; init; }

Property Value

S57VerificationOutcome

Remarks

S-63 signature verification is not yet implemented; this currently reports NotSigned for all files. The property exists as a seam to be populated when S-63 support lands.