System.Security.Cryptography.ECDsa.GenerateKey C# (CSharp) Method

GenerateKey() public method

When overridden in a derived class, generates a new public/private keypair for the specified curve.
public GenerateKey ( System.Security.Cryptography.ECCurve curve ) : void
curve System.Security.Cryptography.ECCurve The curve to use.
return void
        public virtual void GenerateKey(ECCurve curve)
        {
            throw new NotSupportedException(SR.NotSupported_SubclassOverride);
        }

Usage Example

        /// <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);
        }
All Usage Examples Of System.Security.Cryptography.ECDsa::GenerateKey