Exemplo n.º 1
0
 /// <summary>
 /// Creates an instance of the specified implementation of <see cref="DiffieHellman"/>.
 /// </summary>
 /// <param name="algName">The name of the implementation of DiffieHellman to use.</param>
 /// <returns>A new instance of the specified implementation of DiffieHellman.</returns>
 public new static DiffieHellman Create(string algName)
 {
     return((DiffieHellman)CryptoConfig.CreateFromName(algName));
 }
Exemplo n.º 2
0
 public new static SHA224 Create(string hashName)
 {
     return((SHA224)(CryptoConfig.CreateFromName(hashName) ?? (object)new SHA224Managed()));
 }
Exemplo n.º 3
0
 public static SymmetricAlgorithm Create(string algName)
 {
     return((SymmetricAlgorithm)CryptoConfig.CreateFromName(algName));
 }