Lines Matching defs:big
108 * @param big <code>BigInteger<code> to be converted
110 * @return a byte array with <code>bitlen</code> bits of <code>big</code>
112 static final byte[] getBytes(BigInteger big, int bitlen) {
117 if (bitlen < big.bitLength()) {
121 byte[] bigBytes = big.toByteArray();
123 if (((big.bitLength() % 8) != 0)
124 && (((big.bitLength() / 8) + 1) == (bitlen / 8))) {
132 if ((big.bitLength() % 8) == 0) { // correct values
149 * @param big
152 public static final String encode(BigInteger big) {
153 return encode(getBytes(big, big.bitLength()));
163 * @param big <code>BigInteger<code> to be converted
165 * @return a byte array with <code>bitlen</code> bits of <code>big</code>
167 public static final byte[] encode(BigInteger big, int bitlen) {
172 if (bitlen < big.bitLength()) {
176 byte[] bigBytes = big.toByteArray();
178 if (((big.bitLength() % 8) != 0)
179 && (((big.bitLength() / 8) + 1) == (bitlen / 8))) {
187 if ((big.bitLength() % 8) == 0) { // correct values