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


C# Asn1.Asn1OctetString類代碼示例

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


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

示例1: RecipientKeyIdentifier

        public RecipientKeyIdentifier(
            Asn1Sequence seq)
        {
            subjectKeyIdentifier = Asn1OctetString.GetInstance(
                seq[0]);

            switch(seq.Count)
            {
                case 1:
                    break;
                case 2:
                    if (seq[1] is DerGeneralizedTime)
                    {
                        date = (DerGeneralizedTime) seq[1];
                    }
                    else
                    {
                        other = OtherKeyAttribute.GetInstance(seq[2]);
                    }
                    break;
                case 3:
                    date  = (DerGeneralizedTime) seq[1];
                    other = OtherKeyAttribute.GetInstance(seq[2]);
                    break;
                default:
                    throw new ArgumentException("Invalid RecipientKeyIdentifier");
            }
        }
開發者ID:karino2,項目名稱:wikipediaconv,代碼行數:28,代碼來源:RecipientKeyIdentifier.cs

示例2: DataGroupHash

		public DataGroupHash(
            int				dataGroupNumber,
            Asn1OctetString	dataGroupHashValue)
        {
            this.dataGroupNumber = new DerInteger(dataGroupNumber);
            this.dataGroupHashValue = dataGroupHashValue;
        }
開發者ID:MBrekhof,項目名稱:pleiobox-clients,代碼行數:7,代碼來源:DataGroupHash.cs

示例3: KeyTransRecipientInfo

		public KeyTransRecipientInfo(
            Asn1Sequence seq)
        {
            this.version = (DerInteger) seq[0];
            this.rid = RecipientIdentifier.GetInstance(seq[1]);
            this.keyEncryptionAlgorithm = AlgorithmIdentifier.GetInstance(seq[2]);
            this.encryptedKey = (Asn1OctetString) seq[3];
        }
開發者ID:htlp,項目名稱:itextsharp,代碼行數:8,代碼來源:KeyTransRecipientInfo.cs

示例4: IdeaCbcPar

		private IdeaCbcPar(
            Asn1Sequence seq)
        {
			if (seq.Count == 1)
			{
				iv = (Asn1OctetString) seq[0];
			}
        }
開發者ID:nicecai,項目名稱:iTextSharp-4.1.6,代碼行數:8,代碼來源:IDEACBCPar.cs

示例5: KekRecipientInfo

		public KekRecipientInfo(
            Asn1Sequence seq)
        {
            version = (DerInteger) seq[0];
            kekID = KekIdentifier.GetInstance(seq[1]);
            keyEncryptionAlgorithm = AlgorithmIdentifier.GetInstance(seq[2]);
            encryptedKey = (Asn1OctetString) seq[3];
        }
開發者ID:ktw,項目名稱:OutlookPrivacyPlugin,代碼行數:8,代碼來源:KEKRecipientInfo.cs

示例6: PasswordRecipientInfo

		public PasswordRecipientInfo(
            AlgorithmIdentifier	keyEncryptionAlgorithm,
            Asn1OctetString		encryptedKey)
        {
            this.version = new DerInteger(0);
            this.keyEncryptionAlgorithm = keyEncryptionAlgorithm;
            this.encryptedKey = encryptedKey;
        }
開發者ID:htlp,項目名稱:itextsharp,代碼行數:8,代碼來源:PasswordRecipientInfo.cs

示例7: PbeParameter

		private PbeParameter(Asn1Sequence seq)
		{
			if (seq.Count != 2)
				throw new ArgumentException("Wrong number of elements in sequence", "seq");

			salt = Asn1OctetString.GetInstance(seq[0]);
			iterationCount = DerInteger.GetInstance(seq[1]);
		}
開發者ID:htlp,項目名稱:itextsharp,代碼行數:8,代碼來源:PBEParameter.cs

示例8: ResponderID

        public ResponderID(
            Asn1OctetString id)
        {
            if (id == null)
                throw new ArgumentNullException("id");

            this.id = id;
        }
開發者ID:hjgode,項目名稱:iTextSharpCF,代碼行數:8,代碼來源:ResponderID.cs

示例9: Cast5CbcParameters

		private Cast5CbcParameters(
            Asn1Sequence seq)
        {
			if (seq.Count != 2)
				throw new ArgumentException("Wrong number of elements in sequence", "seq");

			iv = (Asn1OctetString) seq[0];
            keyLength = (DerInteger) seq[1];
        }
開發者ID:MBrekhof,項目名稱:pleiobox-clients,代碼行數:9,代碼來源:CAST5CBCParameters.cs

示例10: ResponseBytes

		private ResponseBytes(
            Asn1Sequence seq)
        {
			if (seq.Count != 2)
				throw new ArgumentException("Wrong number of elements in sequence", "seq");

			this.responseType = DerObjectIdentifier.GetInstance(seq[0]);
            this.response = Asn1OctetString.GetInstance(seq[1]);
        }
開發者ID:MBrekhof,項目名稱:pleiobox-clients,代碼行數:9,代碼來源:ResponseBytes.cs

示例11: EncryptedContentInfo

		public EncryptedContentInfo(
            DerObjectIdentifier	contentType,
            AlgorithmIdentifier	contentEncryptionAlgorithm,
            Asn1OctetString		encryptedContent)
        {
            this.contentType = contentType;
            this.contentEncryptionAlgorithm = contentEncryptionAlgorithm;
            this.encryptedContent = encryptedContent;
        }
開發者ID:ktw,項目名稱:OutlookPrivacyPlugin,代碼行數:9,代碼來源:EncryptedContentInfo.cs

示例12: Gost28147Parameters

        private Gost28147Parameters(
            Asn1Sequence seq)
        {
			if (seq.Count != 2)
				throw new ArgumentException("Wrong number of elements in sequence", "seq");

			this.iv = Asn1OctetString.GetInstance(seq[0]);
			this.paramSet = DerObjectIdentifier.GetInstance(seq[1]);
        }
開發者ID:MBrekhof,項目名稱:pleiobox-clients,代碼行數:9,代碼來源:GOST28147Parameters.cs

示例13: BiometricData

 public BiometricData(
     TypeOfBiometricData	typeOfBiometricData,
     AlgorithmIdentifier	hashAlgorithm,
     Asn1OctetString		biometricDataHash)
 {
     this.typeOfBiometricData = typeOfBiometricData;
     this.hashAlgorithm = hashAlgorithm;
     this.biometricDataHash = biometricDataHash;
     this.sourceDataUri = null;
 }
開發者ID:ktw,項目名稱:OutlookPrivacyPlugin,代碼行數:10,代碼來源:BiometricData.cs

示例14: Pkcs12PbeParams

 public Pkcs12PbeParams(
     byte[]	salt,
     int		iterations)
 {
     this.iv = new DerOctetString(salt);
     this.iterations = new DerInteger(iterations);
 }
開發者ID:sanyaade-iot,項目名稱:Schmoose-BouncyCastle,代碼行數:7,代碼來源:PKCS12PBEParams.cs

示例15: RC2CbcParameter

		public RC2CbcParameter(
            int		parameterVersion,
            byte[]	iv)
        {
            this.version = new DerInteger(parameterVersion);
            this.iv = new DerOctetString(iv);
        }
開發者ID:htlp,項目名稱:itextsharp,代碼行數:7,代碼來源:RC2CBCParameter.cs


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