public static FfcDomainParameters GetDomainParameters(SafePrime safePrime) { var result = SafePrimeDomainParameters.FirstOrDefault(f => f.Key == safePrime).Value; if (result == null) { throw new ArgumentException($"Cannot map {nameof(safePrime)} to a {nameof(FfcDomainParameters)}."); } return(result); }
public FfcDomainParameters GetSafePrime(SafePrime safePrime) { return(GetDomainParameters(safePrime)); }