Re: DH shared key generation using Oakley groups.

2005-09-24 Thread joseph k j
On 9/24/05, Nils Larsch <[EMAIL PROTECTED]> wrote: joseph k j wrote:...> I am using openssl-0.9.8-stable-SNAP-20050810,> BN_set_word(BIGNUM *a, unsigned long w);> what should i do if i need to set a prime whose bits exceeds that of > a long.> can some one g

Re: crypto

2005-09-23 Thread joseph k j
On 9/24/05, Saber Zrelli <[EMAIL PROTECTED]> wrote: I found where is the mistake ,I forgot to initialize n to 0 inDES_cfb64_encrypt(Msg, Res,20, &schedule, &Key2, &n, DES_ENCRYPT);Thanks any way,Saber.* On 05:35, Sat 24 Sep 05, Saber Zrelli wrote: > Hi ,>> Thanks Nils for the tip,>> I could make my

Re: DH shared key generation using Oakley groups.

2005-09-23 Thread joseph k j
On 9/23/05, Nils Larsch <[EMAIL PROTECTED]> wrote: joseph k j wrote:> hello everyone,>> I am currently using the following functions,>>a = DH_new();>DH_generate_parameters_ex(a, prime_len, generator, &cb );> > here i see the prime generated is random,

DH shared key generation using Oakley groups.

2005-09-22 Thread joseph k j
hello everyone, I am currently using the following functions,      a = DH_new();    DH_generate_parameters_ex(a, prime_len, generator, &cb ); here i see the prime generated is random, each time i call the function it genrerates a new prime. but how is it possible for me to use predefined p

AES test code

2005-09-21 Thread joseph k j
Hello everyone, Why is there no unit test code available for AES, in crypto/aes If i need to modify the test code of DES for testing AES, what are the issues that i should take care of? can some one correct me on my assumptions. 1. I assume that the aes code has the same naming conventions