/// <summary> /// Создание объекта, реализуещего алгоритм шифрования ГОСТ-28147. /// </summary> /// /// <returns>Криптографический объект, реализующий алгоритм ГОСТ /// 28147.</returns> /// /// <remarks><para>Создание объекта алгоритма шифрования ГОСТ 28147. /// Объект может использоваться /// для симметричного зашифрования и расшифрования.</para></remarks> /// ///// <doc-sample path="Simple\Encrypt" name="EncryptDecryptRandomFile" ///// region="EncryptDecryptRandomFile">Пример зашифрования и ///// расшифрования файла при помощи ///// порожденного класса <see cref="Gost28147CryptoServiceProvider"/>. ///// </doc-sample> public new static Gost28147 Create() { // Создание объекта идет по конфигурации для алгоритма заданного // полным именем класса Gost28147. return((Gost28147)CryptoConfig.CreateFromName(typeof(Gost28147).Name)); }
public static RSA Create(string algName) { return((RSA)CryptoConfig.CreateFromName(algName)); }
public new static TripleDES Create(String algName) { return((TripleDES)(CryptoConfig.CreateFromName(algName, null))); }
public static new SHA1 Create(string hashName) { return((SHA1)CryptoConfig.CreateFromName(hashName)); }
public static new MD5 Create(string algName) => (MD5)CryptoConfig.CreateFromName(algName);
// Create a new instance of the "RIPEMD160" class. public new static RIPEMD160 Create() { return((RIPEMD160)(CryptoConfig.CreateFromName (CryptoConfig.RIPEMD160Default, null))); }
/// <summary>Creates an instance of a cryptographic object to perform the specified implementation of the Data Encryption Standard (<see cref="T:System.Security.Cryptography.DES" />) algorithm.</summary> /// <returns>A cryptographic object.</returns> /// <param name="algName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.DES" /> to use. </param> public new static DES Create(string algName) { return((DES)CryptoConfig.CreateFromName(algName)); }
public static new MD5 Create(string algName) { return((MD5)CryptoConfig.CreateFromName(algName)); }
public static new ECDsa?Create(string algorithm) { ArgumentNullException.ThrowIfNull(algorithm); return(CryptoConfig.CreateFromName(algorithm) as ECDsa); }
/// <include file='doc\SHA1.uex' path='docs/doc[@for="SHA1.Create1"]/*' /> new static public SHA1 Create(String hashName) { return((SHA1)CryptoConfig.CreateFromName(hashName)); }
// Create a symmetric algorithm object. public static SymmetricAlgorithm Create() { return((SymmetricAlgorithm) (CryptoConfig.CreateFromName (CryptoConfig.SymmetricDefault, null))); }
public static AsymmetricAlgorithm Create(string algName) { return((AsymmetricAlgorithm)CryptoConfig.CreateFromName(algName)); }
/// <summary> /// Creates an instance of the specified implementation of the <see cref="RIPEMD160"/> hash algorithm. /// </summary> /// <param name="hashName">The name of the specific implementation of RIPEMD160 to use.</param> /// <returns>A new instance of the specified implementation of RIPEMD160.</returns> public static new RIPEMD160 Create(string hashName) { return((RIPEMD160)CryptoConfig.CreateFromName(hashName)); }
/// <summary> /// Создание объекта, реализующего алгоритм шифрования ГОСТ-28147 /// с заданным именем реализации. /// </summary> /// /// <param name="algName">Имя реализации алгоритма.</param> /// /// <returns>Криптографический объект, реализующий алгоритм /// ГОСТ 28147.</returns> /// ///// <doc-sample path="Simple\Encrypt" name="EncryptDecryptRandomFile" ///// region="EncryptDecryptRandomFile">Пример зашифрования и ///// расшифрования файла при помощи ///// порожденного класса <see cref="Gost28147CryptoServiceProvider"/>. ///// </doc-sample> public new static Gost28147 Create(string algName) { // Создание объекта идет по конфигурации для алгоритма заданного // параметром. return((Gost28147)CryptoConfig.CreateFromName(algName)); }
new static public HMAC Create(string algorithmName) { return((HMAC)CryptoConfig.CreateFromName(algorithmName)); }
// Create an instance of the default DSA implementation. public new static DSA Create() { return((DSA)(CryptoConfig.CreateFromName (CryptoConfig.DSADefault, null))); }
/// <summary>When overridden in a derived class, creates an instance of the specified implementation of a cryptographic random number generator.</summary> /// <param name="rngName">The name of the random number generator implementation to use. </param> /// <returns>A new instance of a cryptographic random number generator.</returns> // Token: 0x060020C0 RID: 8384 RVA: 0x00072941 File Offset: 0x00070B41 public static RandomNumberGenerator Create(string rngName) { return((RandomNumberGenerator)CryptoConfig.CreateFromName(rngName)); }
// Create an instance of a specific DSA implementation, by name. public new static DSA Create(String algName) { return((DSA)(CryptoConfig.CreateFromName(algName, null))); }
public new static RIPEMD160 Create(String algName) { return((RIPEMD160)(CryptoConfig.CreateFromName(algName, null))); }
public static HashAlgorithm Create(string hashName) { return((HashAlgorithm)CryptoConfig.CreateFromName(hashName)); }
public static new Rijndael Create(string algName) { return((Rijndael)CryptoConfig.CreateFromName(algName)); }
public static new Gost3411_2012_512 Create(string hashName) => (Gost3411_2012_512)CryptoConfig.CreateFromName(hashName);
public static new SHA384 Create(string hashName) => (SHA384)CryptoConfig.CreateFromName(hashName);
public static new Aes Create(string algName) { return((Aes)CryptoConfig.CreateFromName(algName)); }
new static public DSA Create(String algName) { return((DSA)CryptoConfig.CreateFromName(algName)); }
public static new TripleDES Create(string str) { return((TripleDES)CryptoConfig.CreateFromName(str)); }
// Create a new instance of the TripleDES algorithm. public new static TripleDES Create() { return((TripleDES)(CryptoConfig.CreateFromName (CryptoConfig.TripleDESDefault, null))); }
public static new KeyedHashAlgorithm Create(string algName) { return((KeyedHashAlgorithm)CryptoConfig.CreateFromName(algName)); }
static public SymmetricAlgorithm Create(String algName) { return((SymmetricAlgorithm)CryptoConfig.CreateFromName(algName)); }
public new static SHA384 Create(String algName) { return((SHA384)(CryptoConfig.CreateFromName(algName, null))); }