/// <summary>Returns the <see cref="EllipticalCurve"/> corresponding to the <paramref name="crv"/>.</summary> public static EllipticalCurve FromString(string crv) { if (!TryParse(crv, out var curve)) { ThrowHelper.ThrowNotSupportedException_Curve(crv); } return(curve); }
/// <summary> /// Returns the <see cref="EllipticalCurve"/> corresponding to the <paramref name="crv"/>. /// </summary> /// <param name="crv"></param> /// <returns></returns> public static EllipticalCurve FromString(string crv) { switch (crv) { case "P-256": return P256; case "P-384": return P384; case "P-521": return P521; default: ThrowHelper.ThrowNotSupportedException_Curve(crv); return default; } }