Hi all,
I am trying to use the Diffie Hellman key
exchange in one of my projects. I have got it to work
but I was wondering how I go about changing some of
the domain parameters.
I currently read a 1024 bit prime modulo(p) from a
file. I dont set the private and public key lengths
but they default to 128 bytes (same length as p). Its
understandable for the public key length but how I can
change the private key length. I printed out the
private keys and they are not 1024 bits long, they are
around 160 bits with leading zeros. How is the size of
the private key decided and how can i set it?
Also, can I change the AgreedValueLength (final key).
Currently it is the same size as p. I want to generate
128, 256,512 & 1024 bit keys with a 1024 bit prime
modulo.
Thanks in advance
ravi
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail