Class JceTlsMLKemDomain

  • All Implemented Interfaces:
    TlsKemDomain

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

      • kemName

        protected final java.lang.String kemName
      • isServer

        protected final boolean isServer
    • Method Detail

      • adoptLocalSecret

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

        public JceTlsSecret decapsulate​(java.security.PrivateKey privateKey,
                                        byte[] ciphertext)
      • decodePublicKey

        public java.security.PublicKey decodePublicKey​(byte[] encoding)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • encapsulate

        public org.bouncycastle.jcajce.SecretKeyWithEncapsulation encapsulate​(java.security.PublicKey publicKey)
      • encodePublicKey

        public byte[] encodePublicKey​(java.security.PublicKey publicKey)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • generateKeyPair

        public java.security.KeyPair generateKeyPair()
      • isServer

        public boolean isServer()