예제 #1
0
파일: ECDsaCng.cs 프로젝트: jnm2/corefx
        /// <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);
        }
예제 #2
0
파일: ECDsaCng.cs 프로젝트: dotnet/corefx
 /// <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;
 }