GetAlgorithmOid() static private method

static private GetAlgorithmOid ( string algorithmName ) : DerObjectIdentifier
algorithmName string
return Org.BouncyCastle.Asn1.DerObjectIdentifier
Exemplo n.º 1
0
 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
        }