Check for 0 modulus in BN_MONT_CTX_set