Class JceTlsMLKemDomain

java.lang.Object
org.bouncycastle.tls.crypto.impl.jcajce.JceTlsMLKemDomain
All Implemented Interfaces:
TlsKemDomain

public class JceTlsMLKemDomain extends Object implements TlsKemDomain
  • Field Details

    • crypto

      protected final JcaTlsCrypto crypto
    • config

      protected final TlsKemConfig config
    • domainParameters

      protected final org.bouncycastle.pqc.crypto.mlkem.MLKEMParameters domainParameters
    • isServer

      protected final boolean isServer
  • Constructor Details

  • Method Details

    • getDomainParameters

      public static org.bouncycastle.pqc.crypto.mlkem.MLKEMParameters getDomainParameters(TlsKemConfig kemConfig)
    • adoptLocalSecret

      public JceTlsSecret adoptLocalSecret(byte[] secret)
    • createKem

      public TlsAgreement createKem()
      Specified by:
      createKem in interface TlsKemDomain
    • decapsulate

      public JceTlsSecret decapsulate(org.bouncycastle.pqc.crypto.mlkem.MLKEMPrivateKeyParameters privateKey, byte[] ciphertext)
    • decodePublicKey

      public org.bouncycastle.pqc.crypto.mlkem.MLKEMPublicKeyParameters decodePublicKey(byte[] encoding)
    • encapsulate

      public org.bouncycastle.crypto.SecretWithEncapsulation encapsulate(org.bouncycastle.pqc.crypto.mlkem.MLKEMPublicKeyParameters publicKey)
    • encodePublicKey

      public byte[] encodePublicKey(org.bouncycastle.pqc.crypto.mlkem.MLKEMPublicKeyParameters publicKey)
    • generateKeyPair

      public org.bouncycastle.crypto.AsymmetricCipherKeyPair generateKeyPair()
    • isServer

      public boolean isServer()