Code example for BigInteger

Methods: toByteArray

0
        } 
 
 
        private byte[] makeUnsigned(BigInteger val)
        { 
            byte[] res = val.toByteArray();
 
            if (res[0] == 0)
            { 
                byte[] tmp = new byte[res.length - 1];
 
                System.arraycopy(res, 1, tmp, 0, tmp.length);
 
                return tmp;
            } 
 
            return res;
        } 
 
        public BigInteger[] decode(
            byte[] encoding)