Bouncy Castle Cryptography Library 1.87

org.bouncycastle.crypto.hpke
Class HybridKEMPrivateKeyParameters

java.lang.Object
  extended byorg.bouncycastle.crypto.params.AsymmetricKeyParameter
      extended byorg.bouncycastle.crypto.hpke.HybridKEMPrivateKeyParameters
All Implemented Interfaces:
CipherParameters

public class HybridKEMPrivateKeyParameters
extends AsymmetricKeyParameter

Private (decapsulation) key of one of the ML-KEM / NIST curve hybrid KEMs of draft-irtf-cfrg-concrete-hybrid-kems used with HPKE (HPKE.kem_MLKEM768_P256, HPKE.kem_MLKEM1024_P384). The key is a 32-byte seed, which is also its serialized form; the ML-KEM and curve components are expanded from it.


Method Summary
 byte[] getEncoded()
           
 short getKemId()
           
 HybridKEMPublicKeyParameters getPublicKeyParameters()
           
 byte[] getSeed()
          Return the 32-byte seed the key pair is derived from, which is the key's serialized form.
 
Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter
isPrivate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getKemId

public short getKemId()

getSeed

public byte[] getSeed()
Return the 32-byte seed the key pair is derived from, which is the key's serialized form.


getEncoded

public byte[] getEncoded()

getPublicKeyParameters

public HybridKEMPublicKeyParameters getPublicKeyParameters()

Bouncy Castle Cryptography Library 1.87