ret must have been allocated prior DES_random_key(ret);
Angel Martinez Gonzalez wrote:
Hello:
I want to generate a symmetric key with DES. But I don´t know very well, how
do it.
I tried the following:
void GenerateKey()
{
DES_cblock *ret ;
RAND_screen();
printf("Staus of PRNG: %i\n",RAND_stat
Hello:
I want to generate a symmetric key with DES. But I don´t know very well, how
do it.
I tried the following:
void GenerateKey()
{
DES_cblock *ret ;
RAND_screen();
printf("Staus of PRNG: %i\n",RAND_status());
DES_random_key(ret);
printf("key: %i\n",ret);
}
But I obtained an erro