BN_legendre is no longer needed now that OpenSSL has BN_kronecker.