Class RSAKEMCipherSpi

java.lang.Object
javax.crypto.CipherSpi
org.bouncycastle.jcajce.provider.asymmetric.rsa.RSAKEMCipherSpi

public class RSAKEMCipherSpi extends CipherSpi
Cipher SPI implementing the ISO 18033-2 / RFC 9690 RSA-KEM key-transport scheme, registered under the JCE service name "RSA-KTS-KEM-KWS" and aliased against the id-kem-rsa object identifier (1.0.18033.2.2.4).

Driven by the CMS pipeline through

invalid reference
org.bouncycastle.cms.jcajce.JceKEMRecipientInfoGenerator
(wrap) and
invalid reference
org.bouncycastle.cms.jcajce.JceKEMEnvelopedRecipient
(unwrap) when the recipient holds an RSA key; the analogous peer for ML-KEM is MLKEMCipherSpi.

Cipher operates in WRAP_MODE / UNWRAP_MODE only and requires a KTSParameterSpec carrying the KDF (KDF2 / KDF3 / HKDF per RFC 9690 §4) and the AES-Wrap variant. Wrap output is the RSA-KEM ciphertext (modulus-byte length) concatenated with the AES-wrapped CEK; the CMS caller splits them based on the modulus length.