CreateFromName() public static method

public static CreateFromName ( string name ) : object
name string
return object
Example #1
0
 /// <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));
 }
Example #3
0
 public new static TripleDES Create(String algName)
 {
     return((TripleDES)(CryptoConfig.CreateFromName(algName, null)));
 }
Example #4
0
 public static new SHA1 Create(string hashName)
 {
     return((SHA1)CryptoConfig.CreateFromName(hashName));
 }
Example #5
0
 public static new MD5 Create(string algName) => (MD5)CryptoConfig.CreateFromName(algName);
Example #6
0
 // Create a new instance of the "RIPEMD160" class.
 public new static RIPEMD160 Create()
 {
     return((RIPEMD160)(CryptoConfig.CreateFromName
                            (CryptoConfig.RIPEMD160Default, null)));
 }
Example #7
0
 /// <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));
 }
Example #8
0
 public static new MD5 Create(string algName)
 {
     return((MD5)CryptoConfig.CreateFromName(algName));
 }
Example #9
0
        public static new ECDsa?Create(string algorithm)
        {
            ArgumentNullException.ThrowIfNull(algorithm);

            return(CryptoConfig.CreateFromName(algorithm) as ECDsa);
        }
Example #10
0
 /// <include file='doc\SHA1.uex' path='docs/doc[@for="SHA1.Create1"]/*' />
 new static public SHA1 Create(String hashName)
 {
     return((SHA1)CryptoConfig.CreateFromName(hashName));
 }
Example #11
0
 // Create a symmetric algorithm object.
 public static SymmetricAlgorithm Create()
 {
     return((SymmetricAlgorithm)
            (CryptoConfig.CreateFromName
                 (CryptoConfig.SymmetricDefault, null)));
 }
Example #12
0
 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));
 }
Example #14
0
 /// <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));
 }
Example #15
0
 new static public HMAC Create(string algorithmName)
 {
     return((HMAC)CryptoConfig.CreateFromName(algorithmName));
 }
Example #16
0
 // Create an instance of the default DSA implementation.
 public new static DSA Create()
 {
     return((DSA)(CryptoConfig.CreateFromName
                      (CryptoConfig.DSADefault, null)));
 }
Example #17
0
 /// <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));
 }
Example #18
0
 // Create an instance of a specific DSA implementation, by name.
 public new static DSA Create(String algName)
 {
     return((DSA)(CryptoConfig.CreateFromName(algName, null)));
 }
Example #19
0
 public new static RIPEMD160 Create(String algName)
 {
     return((RIPEMD160)(CryptoConfig.CreateFromName(algName, null)));
 }
Example #20
0
 public static HashAlgorithm Create(string hashName)
 {
     return((HashAlgorithm)CryptoConfig.CreateFromName(hashName));
 }
Example #21
0
 public static new Rijndael Create(string algName)
 {
     return((Rijndael)CryptoConfig.CreateFromName(algName));
 }
Example #22
0
 public static new Gost3411_2012_512 Create(string hashName) => (Gost3411_2012_512)CryptoConfig.CreateFromName(hashName);
Example #23
0
 public static new SHA384 Create(string hashName) => (SHA384)CryptoConfig.CreateFromName(hashName);
Example #24
0
 public static new Aes Create(string algName)
 {
     return((Aes)CryptoConfig.CreateFromName(algName));
 }
 new static public DSA Create(String algName)
 {
     return((DSA)CryptoConfig.CreateFromName(algName));
 }
Example #26
0
 public static new TripleDES Create(string str)
 {
     return((TripleDES)CryptoConfig.CreateFromName(str));
 }
Example #27
0
 // Create a new instance of the TripleDES algorithm.
 public new static TripleDES Create()
 {
     return((TripleDES)(CryptoConfig.CreateFromName
                            (CryptoConfig.TripleDESDefault, null)));
 }
Example #28
0
 public static new KeyedHashAlgorithm Create(string algName)
 {
     return((KeyedHashAlgorithm)CryptoConfig.CreateFromName(algName));
 }
Example #29
0
 static public SymmetricAlgorithm Create(String algName)
 {
     return((SymmetricAlgorithm)CryptoConfig.CreateFromName(algName));
 }
Example #30
0
 public new static SHA384 Create(String algName)
 {
     return((SHA384)(CryptoConfig.CreateFromName(algName, null)));
 }