I use in .Net project mono implementation of BigInteger (link) In Java I use java.math.BigInteger.
The same code produces different results in Java.
.Net cod
I solved my problem by adding 0 bit at the begining of inputBytes.