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, each time i call the function
> it genrerates a new prime.
> but how is it possible for me to use predefined parameters, (esp prime)
> ie i would like to use the oakley groups 1,2,5 (MODP).
>
> is there a function like a= DH_group_get(<group descriptor>);
unfortunately there is no such function, hence you need to set these
values manually, for example using get_rfc2409_prime_1024() etc.
(available in openssl >= 0.9.8) and BN_set_word().
Cheers,
Nils
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 give me a pointer to a good doc on BN.
Wishes
ark