GMP and BC Math signature code generates different signatures