Hi guys, I have a problem with signing with *DSA* private keys using *EVP_SignFina function.* ** There is some fragment of my code following:
/* Do the signature */ EVP_MD_CTX_init(&md_ctx); err = EVP_SignInit (&md_ctx, EVP_sha1()); err = EVP_SignUpdate (&md_ctx, data, strlen(data)); sig_len = sizeof(sig_buf); err = EVP_SignFinal(&md_ctx, sig_buf, &sig_len, pkey); As I looking for the doc, something was said: *When signing with DSA private keys the random number generator must be seeded or the operation will fail. The random number generator does not need to be seeded for RSA signatures.* So, how can I seed the random number generator? I'm a new hand here, thank you very much.