Dave,
See
http://www.openssl.org/docs/crypto/EVP_SignInit.html#
You should allocate the amount of storage indicated by the EVP_PKEY_size()
function. It may a little too much; the actual used is returned by
EVP_SignFinal.
_____________________________________
Greg Stark
Ethentica, Inc.
[EMAIL PROTECTED]
_____________________________________
----- Original Message -----
From: "Dave R" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 19, 2001 9:27 AM
Subject: Size of signature from EVP_SignFinal
> I'd like to be able to work out the size of the signature that would be
> returned by a call to EVP_SignFinal() so that I can dynamically allocate
> the memory for the signature before actually calling the function.
>
> Any info on how to do this? If I pass in a NULL pointer and 0 length,
> I get a SEGV. I'm using this with both RSA & DSA keys.
>
> Thanks
>
> --
> Dave
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]