Set flags to 0 before calling BN_with_flags()