Пример #1
0
 public KeyTransRecipientInfoGenerator(byte[] subjectKeyID, IKeyWrapper keyWrapper)
 {
     this.subjectKeyIdentifier = new DerOctetString(subjectKeyIdentifier);
     this.keyWrapper           = keyWrapper;
 }
Пример #2
0
 public Asn1KeyWrapper(string algorithm, X509Certificate cert)
 {
     this.algorithm = algorithm;
     wrapper        = KeyWrapperUtil.WrapperForName(algorithm, cert.GetPublicKey());
 }
Пример #3
0
 public KeyTransRecipientInfoGenerator(IssuerAndSerialNumber issuerAndSerial, IKeyWrapper keyWrapper)
 {
     this.issuerAndSerialNumber = issuerAndSerial;
     this.keyWrapper            = keyWrapper;
 }
Пример #4
0
 public KeyTransRecipientInfoGenerator(X509Certificate recipCert, IKeyWrapper keyWrapper)
     : this(new Asn1.Cms.IssuerAndSerialNumber(recipCert.IssuerDN, new DerInteger(recipCert.SerialNumber)), keyWrapper)
 {
 }
Пример #5
0
 ///
 /// Create a builder that makes EncryptedValue structures with fixed length blocks padded using the passed in padder.
 ///
 /// <param name="wrapper">a wrapper for key used to encrypt the actual data contained in the EncryptedValue.</param>
 /// <param name="encryptor">encryptor  an output encryptor to encrypt the actual data contained in the EncryptedValue.</param>
 /// <param name="padder">padder a padder to ensure that the EncryptedValue created will always be a constant length.</param>
 ///
 public EncryptedValueBuilder(IKeyWrapper wrapper, ICipherBuilderWithKey encryptor, IEncryptedValuePadder padder)
 {
     this.wrapper   = wrapper;
     this.encryptor = encryptor;
     this.padder    = padder;
 }
Пример #6
0
 ///
 /// Create a builder that makes EncryptedValue structures.
 ///
 /// <param name="wrapper">wrapper a wrapper for key used to encrypt the actual data contained in the EncryptedValue.</param>
 /// <param name="encryptor">encryptor  an output encryptor to encrypt the actual data contained in the EncryptedValue. </param>
 ///
 public EncryptedValueBuilder(IKeyWrapper wrapper, ICipherBuilderWithKey encryptor)
     : this(wrapper, encryptor, null)
 {
 }
Пример #7
0
 public CmsKeyTransRecipientInfoGenerator(byte[] subjectKeyID, IKeyWrapper keyWrapper) : base(subjectKeyID)
 {
     this.keyWrapper = keyWrapper;
 }