GetSigAlgID() static private méthode

static private GetSigAlgID ( DerObjectIdentifier sigOid, string algorithmName ) : AlgorithmIdentifier
sigOid Org.BouncyCastle.Asn1.DerObjectIdentifier
algorithmName string
Résultat Org.BouncyCastle.Asn1.X509.AlgorithmIdentifier
 public void SetSignatureAlgorithm(string signatureAlgorithm)
 {
     this.signatureAlgorithm = signatureAlgorithm;
     try
     {
         this.sigOID = X509Utilities.GetAlgorithmOid(signatureAlgorithm);
     }
     catch (Exception innerException)
     {
         throw new ArgumentException("Unknown signature type requested", innerException);
     }
     this.sigAlgId = X509Utilities.GetSigAlgID(this.sigOID, signatureAlgorithm);
     this.tbsGen.SetSignature(this.sigAlgId);
 }
Exemple #2
0
 public void SetSignatureAlgorithm(string signatureAlgorithm)
 {
     //IL_001b: Unknown result type (might be due to invalid IL or missing references)
     this.signatureAlgorithm = signatureAlgorithm;
     try
     {
         sigOID = X509Utilities.GetAlgorithmOid(signatureAlgorithm);
     }
     catch (global::System.Exception)
     {
         throw new ArgumentException("Unknown signature type requested");
     }
     sigAlgId = X509Utilities.GetSigAlgID(sigOID, signatureAlgorithm);
     acInfoGen.SetSignature(sigAlgId);
 }
Exemple #3
0
        public void SetSignatureAlgorithm(
            string signatureAlgorithm)
        {
            this.signatureAlgorithm = signatureAlgorithm;

            try
            {
                sigOid = X509Utilities.GetAlgorithmOid(signatureAlgorithm);
            }
            catch (Exception)
            {
                throw new ArgumentException("Unknown signature type requested: " + signatureAlgorithm);
            }

            sigAlgId = X509Utilities.GetSigAlgID(sigOid, signatureAlgorithm);

            tbsGen.SetSignature(sigAlgId);
        }