Bouncy Castle Cryptography Library 1.87

org.bouncycastle.cms.bc
Class BcKEMEnvelopedRecipient

java.lang.Object
  extended byorg.bouncycastle.cms.AbstractRecipient
      extended byorg.bouncycastle.cms.bc.BcKEMRecipient
          extended byorg.bouncycastle.cms.bc.BcKEMEnvelopedRecipient
All Implemented Interfaces:
KEMRecipient, Recipient

public class BcKEMEnvelopedRecipient
extends BcKEMRecipient

Recipient for EnvelopedData addressed with an RFC 9629 KEMRecipientInfo, using the light-weight API for both the ML-KEM decapsulation and the content decryption.


Constructor Summary
BcKEMEnvelopedRecipient(org.bouncycastle.crypto.params.AsymmetricKeyParameter recipientKey)
           
 
Method Summary
 RecipientOperator getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, byte[] encryptedContentEncryptionKey)
           
 
Methods inherited from class org.bouncycastle.cms.bc.BcKEMRecipient
extractSecretKey, setAllowedContentAlgorithms
 
Methods inherited from class org.bouncycastle.cms.AbstractRecipient
checkContentAlgorithm, checkTagSize, isContentAlgorithmAllowed, setAllowedContentAlgorithmSet, setMinimumTagSizeInBits
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BcKEMEnvelopedRecipient

public BcKEMEnvelopedRecipient(org.bouncycastle.crypto.params.AsymmetricKeyParameter recipientKey)
Method Detail

getRecipientOperator

public RecipientOperator getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm,
                                              org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm,
                                              byte[] encryptedContentEncryptionKey)
                                       throws CMSException
Throws:
CMSException

Bouncy Castle Cryptography Library 1.87