當前位置: 首頁>>代碼示例>>C#>>正文


C# Asn1.DerObjectIdentifier類代碼示例

本文整理匯總了C#中Org.BouncyCastle.Asn1.DerObjectIdentifier的典型用法代碼示例。如果您正苦於以下問題:C# DerObjectIdentifier類的具體用法?C# DerObjectIdentifier怎麽用?C# DerObjectIdentifier使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DerObjectIdentifier類屬於Org.BouncyCastle.Asn1命名空間,在下文中一共展示了DerObjectIdentifier類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: CommitmentTypeQualifier

 /**
 * Creates a new <code>CommitmentTypeQualifier</code> instance.
 *
 * @param commitmentTypeIdentifier a <code>CommitmentTypeIdentifier</code> value
 * @param qualifier the qualifier, defined by the above field.
 */
 public CommitmentTypeQualifier(
     DerObjectIdentifier commitmentTypeIdentifier,
     Asn1Encodable qualifier)
 {
     this.commitmentTypeIdentifier = commitmentTypeIdentifier;
     this.qualifier = qualifier;
 }
開發者ID:hjgode,項目名稱:iTextSharpCF,代碼行數:13,代碼來源:CommitmentTypeQualifier.cs

示例2: ECPublicBcpgKey

 protected ECPublicBcpgKey(
     DerObjectIdentifier oid,
     ECPoint point)
 {
     this.point = new BigInteger(1, point.GetEncoded());
     this.oid = oid;
 }
開發者ID:ALange,項目名稱:OutlookPrivacyPlugin,代碼行數:7,代碼來源:ECPublicBCPGKey.cs

示例3: GetCapabilitiesForOid

 /**
  * returns an ArrayList with 0 or more objects of all the capabilities
  * matching the passed in capability Oid. If the Oid passed is null the
  * entire set is returned.
  */
 public IList GetCapabilitiesForOid(
     DerObjectIdentifier capability)
 {
     IList list = Platform.CreateArrayList();
     DoGetCapabilitiesForOid(capability, list);
     return list;
 }
開發者ID:sanyaade-iot,項目名稱:Schmoose-BouncyCastle,代碼行數:12,代碼來源:SMIMECapabilities.cs

示例4: AddExtension

        /// <summary>
        /// Add an extension to this certificate.
        /// </summary>
        /// <param name="oid">Its Object Identifier.</param>
        /// <param name="critical">Is it critical.</param>
        /// <param name="extensionValue">The value.</param>
        public void AddExtension(
			DerObjectIdentifier	oid,
			bool				critical,
			Asn1Encodable		extensionValue)
        {
            extGenerator.AddExtension(oid, critical, extensionValue);
        }
開發者ID:sanyaade-iot,項目名稱:Schmoose-BouncyCastle,代碼行數:13,代碼來源:X509V3CertificateGenerator.cs

示例5: AddExtension

		/**
		 * add a given extension field for the standard extensions tag (tag 3)
		 * @throws IOException
		 */
		public virtual void AddExtension(
			DerObjectIdentifier	oid,
			bool				critical,
			Asn1Encodable 		extValue)
		{
			this.AddExtension(oid, critical, extValue.GetEncoded());
		}
開發者ID:Niladri24dutta,項目名稱:itextsharp,代碼行數:11,代碼來源:TimeStampRequestGenerator.cs

示例6: DHKdfParameters

		public DHKdfParameters(
			DerObjectIdentifier	algorithm,
			int					keySize,
			byte[]				z)
			: this(algorithm, keySize, z, null)
		{
		}
開發者ID:MBrekhof,項目名稱:pleiobox-clients,代碼行數:7,代碼來源:DHKdfParameters.cs

示例7: Gost3410KeyGenerationParameters

        public Gost3410KeyGenerationParameters(
			ISecureRandom		random,
			DerObjectIdentifier	publicKeyParamSet)
            : this(random, LookupParameters(publicKeyParamSet))
        {
            this.publicKeyParamSet = publicKeyParamSet;
        }
開發者ID:sanyaade-iot,項目名稱:Schmoose-BouncyCastle,代碼行數:7,代碼來源:GOST3410KeyGenerationParameters.cs

示例8: DerObjectIdentifier

        internal DerObjectIdentifier(DerObjectIdentifier oid, string branchID)
        {
            if (!IsValidBranchID(branchID, 0))
                throw new ArgumentException("string " + branchID + " not a valid OID branch", "branchID");

            this.identifier = oid.Id + "." + branchID;
        }
開發者ID:KimikoMuffin,項目名稱:bc-csharp,代碼行數:7,代碼來源:DerObjectIdentifier.cs

示例9: QCStatement

 public QCStatement(
     DerObjectIdentifier qcStatementId,
     Asn1Encodable       qcStatementInfo)
 {
     this.qcStatementId = qcStatementId;
     this.qcStatementInfo = qcStatementInfo;
 }
開發者ID:ktw,項目名稱:OutlookPrivacyPlugin,代碼行數:7,代碼來源:QCStatement.cs

示例10: ECKeyGenerationParameters

		public ECKeyGenerationParameters(
			DerObjectIdentifier	publicKeyParamSet,
			SecureRandom		random)
			: this(LookupParameters(publicKeyParamSet), random)
		{
			this.publicKeyParamSet = publicKeyParamSet;
		}
開發者ID:nicecai,項目名稱:iTextSharp-4.1.6,代碼行數:7,代碼來源:ECKeyGenerationParameters.cs

示例11: DHKdfParameters

 public DHKdfParameters(DerObjectIdentifier algorithm, int keySize, byte[] z, byte[] extraInfo)
 {
     _algorithm = algorithm;
     _keySize = keySize;
     _z = z; // TODO Clone?
     _extraInfo = extraInfo;
 }
開發者ID:sanyaade-iot,項目名稱:Schmoose-BouncyCastle,代碼行數:7,代碼來源:DHKdfParameters.cs

示例12: AuthorityInformationAccess

 /**
  * create an AuthorityInformationAccess with the oid and location provided.
  */
 public AuthorityInformationAccess(
     DerObjectIdentifier	oid,
     GeneralName			location)
 {
     accessMethod = oid;
     accessLocation = location;
 }
開發者ID:hjgode,項目名稱:iTextSharpCF,代碼行數:10,代碼來源:AuthorityInformationAccess.cs

示例13: Rfc4050XmlMaker

        private static string Rfc4050XmlMaker(string algo, DerObjectIdentifier keyAlgoOid, X509Certificate2 cert)
        {
            if (!algo.Equals("ECDH", StringComparison.InvariantCultureIgnoreCase) &&
                !algo.Equals("ECDSA", StringComparison.InvariantCultureIgnoreCase))
                throw new Exception("Cannot generate rfc4050 keys for unknown EC algorithm");

            algo = algo.ToUpper();
            var namedCurve = SecNamedCurves.GetByOid(keyAlgoOid);
            var publickey = new ECPublicKeyParameters(algo,
                        namedCurve.Curve.DecodePoint(cert.GetPublicKey()), // Q
                        keyAlgoOid);

            //now we have the public key in bouncy castle
            //we can create the xml to import to CngKey
            string xml = "<" + algo + @"KeyValue xmlns='http://www.w3.org/2001/04/xmldsig-more#'>
                              <DomainParameters>
                                <NamedCurve URN='urn:oid:" + keyAlgoOid.Id + @"' />
                              </DomainParameters>
                              <PublicKey>
                                <X Value='" + publickey.Q.X.ToBigInteger() +
                                                        @"' xsi:type='PrimeFieldElemType' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' />
                                <Y Value='" + publickey.Q.Y.ToBigInteger() +
                                                        @"' xsi:type='PrimeFieldElemType' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' />
                              </PublicKey>
                            </" + algo + "KeyValue>";

            return xml;
        }
開發者ID:sidshetye,項目名稱:win10secp384Issue,代碼行數:28,代碼來源:Program.cs

示例14: CommitmentTypeIndication

 public CommitmentTypeIndication(
     DerObjectIdentifier	commitmentTypeId,
     Asn1Sequence		commitmentTypeQualifier)
 {
     this.commitmentTypeId = commitmentTypeId;
     this.commitmentTypeQualifier = commitmentTypeQualifier;
 }
開發者ID:hjgode,項目名稱:iTextSharpCF,代碼行數:7,代碼來源:CommitmentTypeIndication.cs

示例15: OtherRecipientInfo

		public OtherRecipientInfo(
            DerObjectIdentifier	oriType,
            Asn1Encodable		oriValue)
        {
            this.oriType = oriType;
            this.oriValue = oriValue;
        }
開發者ID:kungfubozo,項目名稱:Bouncy-Castle-WP8,代碼行數:7,代碼來源:OtherRecipientInfo.cs


注:本文中的Org.BouncyCastle.Asn1.DerObjectIdentifier類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。