Added constructor to JceKeyTransRecipientInfoGenerator for more control over source of randomness
@@ -21,6 +21,11 @@ public JceKeyTransRecipientInfoGenerator(X509Certificate recipientCert)
super(new IssuerAndSerialNumber(new JcaX509CertificateHolder(recipientCert).toASN1Structure()), new JceAsymmetricKeyWrapper(recipientCert));
}
+ public JceKeyTransRecipientInfoGenerator(X509Certificate recipientCert, JceAsymmetricKeyWrapper wrapper)
+ {
+ super(new IssuerAndSerialNumber(new JcaX509CertificateHolder(recipientCert).toASN1Structure()), wrapper);
+ }
+
public JceKeyTransRecipientInfoGenerator(byte[] subjectKeyIdentifier, PublicKey publicKey)
{
super(subjectKeyIdentifier, new JceAsymmetricKeyWrapper(publicKey));
