@Override
    protected int getOutputSize(byte[] key) {
        // We only support X25519 which is 32-byte (256-bit)
        return OpenSSLX25519Key.X25519_KEY_SIZE_BYTES;
    }
Elliptic Curve Diffie-Hellman key agreement backed by the OpenSSL engine.
common/src/main/java/org/conscrypt/OpenSSLXDHKeyAgreement.java