Class BcTlsMLKemDomain

  • All Implemented Interfaces:
    TlsKemDomain

    public class BcTlsMLKemDomain
    extends java.lang.Object
    implements TlsKemDomain
    • Field Detail

      • domainParameters

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

        protected final boolean isServer
    • Method Detail

      • getDomainParameters

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

        public BcTlsSecret adoptLocalSecret​(byte[] secret)
      • decapsulate

        public BcTlsSecret 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()