Class JceTlsMLKemDomain

  • All Implemented Interfaces:
    TlsKemDomain

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

      • kyberParameters

        protected final org.bouncycastle.pqc.crypto.crystals.kyber.KyberParameters kyberParameters
      • isServer

        protected final boolean isServer
    • Method Detail

      • getKyberParameters

        protected static org.bouncycastle.pqc.crypto.crystals.kyber.KyberParameters getKyberParameters​(int namedGroup)
      • adoptLocalSecret

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

        public JceTlsSecret decapsulate​(org.bouncycastle.pqc.crypto.crystals.kyber.KyberPrivateKeyParameters privateKey,
                                        byte[] ciphertext)
      • decodePublicKey

        public org.bouncycastle.pqc.crypto.crystals.kyber.KyberPublicKeyParameters decodePublicKey​(byte[] encoding)
      • encapsulate

        public org.bouncycastle.crypto.SecretWithEncapsulation encapsulate​(org.bouncycastle.pqc.crypto.crystals.kyber.KyberPublicKeyParameters publicKey)
      • encodePublicKey

        public byte[] encodePublicKey​(org.bouncycastle.pqc.crypto.crystals.kyber.KyberPublicKeyParameters publicKey)
      • generateKeyPair

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

        public boolean isServer()