Beispiel #1
0
        /// <summary>
        /// Creates an instance of the platform specific implementation of the cref="ECDsa" algorithm.
        /// </summary>
        /// <param name="parameters">
        /// The <see cref="ECParameters"/> representing the elliptic curve parameters.
        /// </param>
        public static ECDsa Create(ECParameters parameters)
        {
            ECDsa ec = new ECDsaImplementation.ECDsaCng();

            ec.ImportParameters(parameters);
            return(ec);
        }
Beispiel #2
0
 /// <summary>
 /// Creates an instance of the platform specific implementation of the cref="ECDsa" algorithm.
 /// </summary>
 /// <param name="parameters">
 /// The <see cref="ECParameters"/> representing the elliptic curve parameters.
 /// </param>
 public static ECDsa Create(ECParameters parameters)
 {
     ECDsa ec = new ECDsaImplementation.ECDsaCng();
     ec.ImportParameters(parameters);
     return ec;
 }