Class BcKEMRecipientInfoGenerator
java.lang.Object
org.bouncycastle.cms.KEMRecipientInfoGenerator
org.bouncycastle.cms.bc.BcKEMRecipientInfoGenerator
- All Implemented Interfaces:
RecipientInfoGenerator
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.-
Field Summary
Fields inherited from class KEMRecipientInfoGenerator
wrapper -
Constructor Summary
ConstructorsConstructorDescriptionBcKEMRecipientInfoGenerator(byte[] subjectKeyIdentifier, org.bouncycastle.crypto.params.AsymmetricKeyParameter publicKey, org.bouncycastle.asn1.ASN1ObjectIdentifier symWrapAlgorithm) BcKEMRecipientInfoGenerator(X509CertificateHolder recipientCert, org.bouncycastle.asn1.ASN1ObjectIdentifier symWrapAlgorithm) -
Method Summary
Modifier and TypeMethodDescriptionsetKDF(org.bouncycastle.asn1.x509.AlgorithmIdentifier kdfAlgorithm) setSecureRandom(SecureRandom random) setUserKeyingMaterial(byte[] userKeyingMaterial) Methods inherited from class KEMRecipientInfoGenerator
generate
-
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
-
setSecureRandom
-
setKDF
public BcKEMRecipientInfoGenerator setKDF(org.bouncycastle.asn1.x509.AlgorithmIdentifier kdfAlgorithm) -
setUserKeyingMaterial
-