Class BcKEMRecipientInfoGenerator

java.lang.Object
org.bouncycastle.cms.KEMRecipientInfoGenerator
org.bouncycastle.cms.bc.BcKEMRecipientInfoGenerator
All Implemented Interfaces:
RecipientInfoGenerator

public class BcKEMRecipientInfoGenerator extends KEMRecipientInfoGenerator
Generator for an RFC 9629 KEMRecipientInfo using the light-weight API. The recipient's key must be an ML-KEM public key; the content-encryption key is wrapped with the AES key wrap named by the wrap algorithm, under a key-encryption key derived with KDF3/SHA-256 unless setKDF(AlgorithmIdentifier) selects another of the KDFs RFC 9629 allows.
  • Constructor Details

    • BcKEMRecipientInfoGenerator

      public BcKEMRecipientInfoGenerator(X509CertificateHolder recipientCert, org.bouncycastle.asn1.ASN1ObjectIdentifier symWrapAlgorithm) throws IOException
      Throws:
      IOException
    • BcKEMRecipientInfoGenerator

      public BcKEMRecipientInfoGenerator(byte[] subjectKeyIdentifier, org.bouncycastle.crypto.params.AsymmetricKeyParameter publicKey, org.bouncycastle.asn1.ASN1ObjectIdentifier symWrapAlgorithm) throws IOException
      Throws:
      IOException
  • Method Details