Class KeyAgreeRecipientInfoGenerator

java.lang.Object
org.bouncycastle.cms.KeyAgreeRecipientInfoGenerator
All Implemented Interfaces:
RecipientInfoGenerator
Direct Known Subclasses:
JceKeyAgreeRecipientInfoGenerator

public abstract class KeyAgreeRecipientInfoGenerator extends Object implements RecipientInfoGenerator
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    KeyAgreeRecipientInfoGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier keyAgreementOID, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo originatorKeyInfo, org.bouncycastle.asn1.ASN1ObjectIdentifier keyEncryptionOID)
     
  • Method Summary

    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 boolean
    isEC(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithmOID)
     
    protected boolean
    isGOST(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithmOID)
     
    protected boolean
    isMQV(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithmOID)
     
    protected boolean
    isRFC2631(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithmOID)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KeyAgreeRecipientInfoGenerator

      protected KeyAgreeRecipientInfoGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier keyAgreementOID, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo originatorKeyInfo, org.bouncycastle.asn1.ASN1ObjectIdentifier keyEncryptionOID)
  • Method Details

    • generate

      public org.bouncycastle.asn1.cms.RecipientInfo generate(GenericKey contentEncryptionKey) throws CMSException
      Specified by:
      generate in interface RecipientInfoGenerator
      Throws:
      CMSException
    • createOriginatorPublicKey

      protected org.bouncycastle.asn1.cms.OriginatorPublicKey createOriginatorPublicKey(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo originatorKeyInfo)
    • isEC

      protected boolean isEC(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithmOID)
    • isMQV

      protected boolean isMQV(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithmOID)
    • isRFC2631

      protected boolean isRFC2631(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithmOID)
    • isGOST

      protected boolean isGOST(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithmOID)
    • generateRecipientEncryptedKeys

      protected abstract org.bouncycastle.asn1.ASN1Sequence generateRecipientEncryptedKeys(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyAgreeAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncAlgorithm, GenericKey contentEncryptionKey) throws CMSException
      Throws:
      CMSException
    • getUserKeyingMaterial

      protected abstract byte[] getUserKeyingMaterial(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyAgreeAlgorithm) throws CMSException
      Throws:
      CMSException