RecipientInfoGenerator
JceKeyAgreeRecipientInfoGenerator
public abstract class KeyAgreeRecipientInfoGenerator extends java.lang.Object implements RecipientInfoGenerator
Modifier | Constructor | Description |
---|---|---|
protected |
KeyAgreeRecipientInfoGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier keyAgreementOID,
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo originatorKeyInfo,
org.bouncycastle.asn1.ASN1ObjectIdentifier keyEncryptionOID) |
Modifier and Type | Method | Description |
---|---|---|
protected org.bouncycastle.asn1.cms.OriginatorPublicKey |
createOriginatorPublicKey(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo originatorKeyInfo) |
|
org.bouncycastle.asn1.cms.RecipientInfo |
generate(GenericKey contentEncryptionKey) |
|
protected abstract org.bouncycastle.asn1.ASN1Sequence |
generateRecipientEncryptedKeys(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyAgreeAlgorithm,
org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncAlgorithm,
GenericKey contentEncryptionKey) |
|
protected abstract byte[] |
getUserKeyingMaterial(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyAgreeAlgorithm) |
protected KeyAgreeRecipientInfoGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier keyAgreementOID, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo originatorKeyInfo, org.bouncycastle.asn1.ASN1ObjectIdentifier keyEncryptionOID)
public org.bouncycastle.asn1.cms.RecipientInfo generate(GenericKey contentEncryptionKey) throws CMSException
generate
in interface RecipientInfoGenerator
CMSException
protected org.bouncycastle.asn1.cms.OriginatorPublicKey createOriginatorPublicKey(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo originatorKeyInfo)
protected abstract org.bouncycastle.asn1.ASN1Sequence generateRecipientEncryptedKeys(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyAgreeAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncAlgorithm, GenericKey contentEncryptionKey) throws CMSException
CMSException
protected abstract byte[] getUserKeyingMaterial(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyAgreeAlgorithm) throws CMSException
CMSException