public GenerateKey ( System.Security.Cryptography.ECCurve curve ) : void | ||
curve | System.Security.Cryptography.ECCurve | The curve to use. |
return | void |
/// <summary> /// Creates an instance of the platform specific implementation of the cref="ECDsa" algorithm. /// </summary> /// <param name="curve"> /// The <see cref="ECCurve"/> representing the elliptic curve. /// </param> public static ECDsa Create(ECCurve curve) { ECDsa ecdsa = Create(); ecdsa.GenerateKey(curve); return(ecdsa); }
/// <summary> /// Creates a new instance of the default implementation of the Elliptic Curve Digital Signature Algorithm /// (ECDSA) with a newly generated key over the specified curve. /// </summary> /// <param name="curve">The curve to use for key generation.</param> /// <returns>A new instance of the default implementation of this class.</returns> public static ECDsa Create(ECCurve curve) { ECDsa ecdsa = Create(); if (ecdsa != null) { try { ecdsa.GenerateKey(curve); } catch { ecdsa.Dispose(); throw; } } return(ecdsa); }
public override void GenerateKey(ECCurve curve) => _wrapped.GenerateKey(curve);