SshKnownHosts.hashedHostMatches

private bool hashedHostMatches(string field, string candidate) static @trusted

Checks a hashed host field of the form |1|salt|hash against one candidate using HMAC-SHA1 with the stored salt.

Parameters

fieldThe hashed pattern field.
candidateLowercased candidate string.

Returns

True when the hash matches. This is a lookup MAC only; it does

not enable SHA-1 signatures anywhere.