-
banihama
Hi everybody, i'm facing a strange error when i try to generate Key-Pair to be used for encryption purposes. I try to run the following code on Ubuntu:
KeyPairGenerator myPriPubKeys;
myPriPubKeys = KeyPairGenerator.getInstance("RSA");
SecureRandom myRandom = SecureRandom.getInstance("SHA1PRNG");myPriPubKeys.initialize(1024, myRandom);
myKeyPair = myPriPubKeys.genKeyPair();The error showing is:
genKeyPair failed: java.lang.ArithmeticException: negative exponent
java.lang.ArithmeticException: negative exponent
at java.math.BigInteger.pow(libgcj.so.81)
at gnu.java.security.key.dss.FIPS186.generateParameters(libgcj.so.81)
at gnu.java.security.key.dss.DSSKeyPairGenerator.generate(libgcj.so.81)
at gnu.java.security.jce.sig.KeyPairGeneratorAdapter.generateKeyPair(libgcj.so.81)
at java.security.KeyPairGenerator.genKeyPair(libgcj.so.81)Can any one support.
BTW, i tried to run this code with window XP and it was working perfectly.
Thanks and waiting your replies.
Cu,
Ahmed Banihammad -
banihama
Hello everybody,.. This is a new subscriber to this great form. I found it through the internet and i feel like almost everybody is satisfied with this form for finding their technical question's answers.
I have a little problem with my Ubuntu "Synaptic Package Manager". Before it was working perfectly, however, when i try to run it now, i reach to the point when i add the root administrator password and then the synaptic package manager window (an empty one) opens for a few second and then it terminate !! It is really strange and i can't find easily a solution over the internet. Therefore, i kindly request a support with this problem.
Thanks a lot.
Cu,
Ahmed Banihammad -
banihama
Dear all, it is fine now, i resolved the error by performing the following:
sudo dpkg --clear-avail
sudo apt-get update && sudo apt-get upgradeThanks a lot.