blob: 09f7f8d0f72d04c437c3567b71c2f95ca8e6498b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package org.spongycastle.cms.bc;
import java.io.IOException;
import org.spongycastle.asn1.x509.AlgorithmIdentifier;
import org.spongycastle.cert.X509CertificateHolder;
import org.spongycastle.crypto.params.AsymmetricKeyParameter;
import org.spongycastle.operator.bc.BcRSAAsymmetricKeyWrapper;
public class BcRSAKeyTransRecipientInfoGenerator
extends BcKeyTransRecipientInfoGenerator
{
public BcRSAKeyTransRecipientInfoGenerator(byte[] subjectKeyIdentifier, AlgorithmIdentifier encAlgId, AsymmetricKeyParameter publicKey)
{
super(subjectKeyIdentifier, new BcRSAAsymmetricKeyWrapper(encAlgId, publicKey));
}
public BcRSAKeyTransRecipientInfoGenerator(X509CertificateHolder recipientCert)
throws IOException
{
super(recipientCert, new BcRSAAsymmetricKeyWrapper(recipientCert.getSubjectPublicKeyInfo().getAlgorithmId(), recipientCert.getSubjectPublicKeyInfo()));
}
}
|