BN_value_10
BN_mul(t1, max, BN_value_10(), NULL);
if (BN_div(t1, t2, nbytes, BN_value_10(), NULL) == 0)