On Wed, Mar 20, 2013 at 3:44 PM, Matt Caswell <fr...@baggins.org> wrote:
> On 20 March 2013 07:37, azhar jodatti <azhar...@gmail.com> wrote: > >> Public key : > >> > 51093028659631095152127547561210256954397603098232059666027122615973227382429027689439366800901894865255894412959274262339973658755087875326652519316408641291147210116350724179445600062190440655247730764834818870113073675659597350146096013520359779813721130161289129623836149432660886911252479058706300096609627440489763066216701057451976966454286830289446177423364030417328352835706375072921374017823594671329956408841840266423002727166432797742483425435318160265353606929428888687407883845458106878990927218108399715490559887862345042269910918508836619472642535350414785745034292564778165044378612630468960194913792482268072428278422412284738960598286710094132345557605518602478981231098046892613531283123151 > >> > > This public key is too big. It is far larger than the value of p. How > are you extracting and printing it? > > Java JCE generating this key. :( :( Below is the code I am using to print this. byte[] bobPubKeyEnc = bobKpair.getPublic().getEncoded(); // this generated server's public key System.out.println("public key : "+ new BigInteger(bobPubKeyEnc)); //prints public key in BigInteger (decimal) Even you can see the same steps in my previous mail threads where I pasted my complete JAVA and C code. Do you see any issue with this? or anything else Matt > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-users@openssl.org > Automated List Manager majord...@openssl.org >