Пример #1
0
 public EncryptedData(DerObjectIdentifier contentType, AlgorithmIdentifier encryptionAlgorithm, Asn1Encodable content)
 {
     this.data = new BerSequence(new Asn1Encodable[]
     {
         contentType,
         encryptionAlgorithm.ToAsn1Object(),
         new BerTaggedObject(false, 0, content)
     });
 }
Пример #2
0
 public EncryptedData(DerObjectIdentifier contentType, AlgorithmIdentifier encryptionAlgorithm, Asn1Encodable content)
 {
     data = new BerSequence(contentType, encryptionAlgorithm.ToAsn1Object(), new BerTaggedObject(explicitly: false, 0, content));
 }