@Override
    protected byte[] engineGenerateSecret() {
        checkCompleted();
        return mResult;
    }
Given the public key {@code theirPublicKey} and the private key {@code ourPrivateKey} write the shared secret
to {@code buffer} and return the actual output size.
common/src/main/java/org/conscrypt/OpenSSLBaseDHKeyAgreement.java