Table of Contents

Class HashingFunction

Namespace
SmarterLink.Core.FileTransfer
Assembly
SmarterLink.Core.dll

Identifies a hashing algorithm used for file transfer integrity verification. Two canonical values are defined; custom algorithm names are permitted.

[JsonConverter(typeof(ValueOfConverterFactory))]
public record HashingFunction : ValueOf<string>, IEquatable<ValueOf<string>>, IEquatable<HashingFunction>
Inheritance
HashingFunction
Implements
Inherited Members

Constructors

Creates a hashing function with the given name. If the name matches a canonical value, IsCanonical will be true.

public HashingFunction(string name)

Parameters

name string

Fields

The MD5 hashing algorithm.

public static readonly HashingFunction MD5

Field Value

HashingFunction

The SHA-256 hashing algorithm.

public static readonly HashingFunction Sha256

Field Value

HashingFunction

Properties

Indicates whether this hashing function is one of the canonical SmarterLink-defined algorithms.

[JsonIgnore]
public bool IsCanonical { get; }

Property Value

bool