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