Generating RSA keys using the Openssl's Crypto API

2007-01-07 Thread A S
Hi all, I want to generate an RSA key pair from a c/c++ program using Openssl's API. I saw that there is an RSA_generate_key() function, but it requires an initialization of the random generator. Could anyone explain me how to initialize the random generator (on Linux)? A short c sample of t

Re: Generating RSA keys using the Openssl's Crypto API

2007-01-07 Thread Marek Marcola
Hello, > I want to generate an RSA key pair from a c/c++ program using Openssl's API. > > I saw that there is an RSA_generate_key() function, but it requires an > initialization of the random generator. RSA_generate_key() when generating RSA p and q primes requires probably seeded RNG but all ran

Re: Generating RSA keys using the Openssl's Crypto API

2007-01-07 Thread Marek Marcola
Hello, > > A > > short c sample of the generation would be of a great help! > Some simple example attached. Of course you should use something like: r = RSA_generate_key(1024,RSA_F4,NULL,NULL); There were some tests :-) Best regards, -- Marek Marcola <[EMAIL PROTECTED]> ___

Re: speed test with cavium engine

2007-01-07 Thread Mathias Brossard
Elwin Stelzer Eliazer wrote: After your email below, i tried "-multi" and also "time". I also loaded the CPU and took some measurements. But to my surprise, i am getting the same performance numbers, for "time ./openssl speed dsa", in all the three following cases. Are you sure the engine offloa