/// <summary>Sets the hash algorithm to use for creating the signature.</summary> /// <param name="strName">The name of the hash algorithm to use for creating the signature. </param> // Token: 0x06002310 RID: 8976 RVA: 0x0007DC18 File Offset: 0x0007BE18 public override void SetHashAlgorithm(string strName) { this._strOID = CryptoConfig.MapNameToOID(strName, OidGroup.HashAlgorithm); }
public DSASignatureFormatter() { this._oid = CryptoConfig.MapNameToOID("SHA1"); }
/// <summary>初始化 <see cref="T:System.Security.Cryptography.DSASignatureFormatter" /> 类的新实例。</summary> public DSASignatureFormatter() { this._oid = CryptoConfig.MapNameToOID("SHA1", OidGroup.HashAlgorithm); }
// // public constructors // public DSASignatureDeformatter() { // The hash algorithm is always SHA1 _oid = CryptoConfig.MapNameToOID("SHA1", OidGroup.HashAlgorithm); }
/// <summary> /// Создание объекта класса <see cref="Gost2012_512SignatureFormatter"/>. /// </summary> public Gost2012_512SignatureFormatter() { _algOid = CryptoConfig.MapNameToOID(GostConstants.GOST3411_2012_512STRING); }
/// <summary> /// Создание объекта класса <see cref="GostSignatureDeformatter"/>. /// </summary> public GostSignatureDeformatter() { _alg_algOid = CryptoConfig.MapNameToOID(GostConstants.GOST3411_STRING); }
/// <include file='doc\DSASignatureFormatter.uex' path='docs/doc[@for="DSASignatureFormatter.DSASignatureFormatter1"]/*' /> public DSASignatureFormatter(AsymmetricAlgorithm key) { SetKey(key); // The hash algorithm is always SHA1 _strOID = CryptoConfig.MapNameToOID("SHA1"); }
// *********************** CONSTRUCTORS *************************** /// <include file='doc\DSASignatureFormatter.uex' path='docs/doc[@for="DSASignatureFormatter.DSASignatureFormatter"]/*' /> public DSASignatureFormatter() { // The hash algorithm is always SHA1 _strOID = CryptoConfig.MapNameToOID("SHA1"); }
/// <include file='doc\RSAPKCS1SignatureDeformatter.uex' path='docs/doc[@for="RSAPKCS1SignatureDeformatter.SetHashAlgorithm"]/*' /> public override void SetHashAlgorithm(String strName) { _strOID = CryptoConfig.MapNameToOID(strName); }
/// <summary>获取与指定的简单名称对应的算法的对象标识符 (OID)。</summary> /// <returns>指定算法的 OID。</returns> /// <param name="name">获取其 OID 的算法的简单名称。</param> /// <exception cref="T:System.ArgumentNullException"> /// <paramref name="name" /> 参数为 null。</exception> public static string MapNameToOID(string name) { return CryptoConfig.MapNameToOID(name, OidGroup.AllGroups); }