/// <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)); }
public new static SHA224 Create(string hashName) { return((SHA224)(CryptoConfig.CreateFromName(hashName) ?? (object)new SHA224Managed())); }
public static SymmetricAlgorithm Create(string algName) { return((SymmetricAlgorithm)CryptoConfig.CreateFromName(algName)); }