Use more flexible method of determining output length, by setting &outlen
value of the passed output buffer is NULL. The old method of using EVP_PKEY_size(pkey) isn't flexible enough to cover all cases where the output length may depend on the operation or the parameters associated with it.
This commit is contained in:
@@ -221,7 +221,7 @@ static int pkey_dsa_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)
|
||||
const EVP_PKEY_METHOD dsa_pkey_meth =
|
||||
{
|
||||
EVP_PKEY_DSA,
|
||||
0,
|
||||
EVP_PKEY_FLAG_AUTOARGLEN,
|
||||
pkey_dsa_init,
|
||||
pkey_dsa_cleanup,
|
||||
|
||||
|
Reference in New Issue
Block a user