minor change for Java 1.4 usage.
import org.bouncycastle.util.Pack;
import org.bouncycastle.util.encoders.Hex;
-import org.bouncycastle.util.Pack;
-import org.bouncycastle.util.encoders.Hex;
-
-import java.util.Properties;
-
abstract class Internal
{
protected static final int RADIX = 64;
protected int CRYPTO_SECRETKEYBYTES;
-
protected int NWORDS_FIELD; // Number of words of a n-bit field element
protected int PRIME_ZERO_WORDS; // Number of "0" digits in the least significant part of PRIME + 1
protected int NBITS_FIELD;
{
int[] ints = new int[intSize];
String s = props.getProperty(key);
- int i = 0;
- for (String number: s.split(","))
+ String[] vals = s.split(",");
+ for (int i = 0; i != vals.length; i++)
{
- ints[i] = Integer.parseInt(number);
- i++;
+ ints[i] = Integer.parseInt(vals[i]);
}
return ints;
}
