Package org.conscrypt

Class OpenSSLXDHKeyAgreement

    • Constructor Detail

      • OpenSSLXDHKeyAgreement

        public OpenSSLXDHKeyAgreement()
    • Method Detail

      • convertPublicKey

        protected byte[] convertPublicKey​(java.security.PublicKey key)
                                   throws java.security.InvalidKeyException
        Specified by:
        convertPublicKey in class OpenSSLBaseDHKeyAgreement<byte[]>
        Throws:
        java.security.InvalidKeyException
      • convertPrivateKey

        protected byte[] convertPrivateKey​(java.security.PrivateKey key)
                                    throws java.security.InvalidKeyException
        Specified by:
        convertPrivateKey in class OpenSSLBaseDHKeyAgreement<byte[]>
        Throws:
        java.security.InvalidKeyException
      • computeKey

        protected int computeKey​(byte[] buffer,
                                 byte[] theirPublicKey,
                                 byte[] ourPrivateKey)
                          throws java.security.InvalidKeyException
        Description copied from class: OpenSSLBaseDHKeyAgreement
        Given the public key theirPublicKey and the private key ourPrivateKey write the shared secret to buffer and return the actual output size.
        Specified by:
        computeKey in class OpenSSLBaseDHKeyAgreement<byte[]>
        Throws:
        java.security.InvalidKeyException