From: Dr. David von Oheimb Date: Wed, 19 May 2021 14:12:49 +0000 (+0200) Subject: EVP_DigestSignInit.pod: Clarification in EVP_DigestSignFinal() parameter 'sig' X-Git-Tag: openssl-3.0.0-beta1~450 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1202103583b591da0e67d07626d35fd72d87dafa;p=thirdparty%2Fopenssl.git EVP_DigestSignInit.pod: Clarification in EVP_DigestSignFinal() parameter 'sig' Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/15354) --- diff --git a/doc/man3/EVP_DigestSignInit.pod b/doc/man3/EVP_DigestSignInit.pod index d61f20bed3a..a24db539498 100644 --- a/doc/man3/EVP_DigestSignInit.pod +++ b/doc/man3/EVP_DigestSignInit.pod @@ -118,8 +118,9 @@ EVP_DigestSignUpdate() hashes I bytes of data at I into the signature context I. This function can be called several times on the same I to include additional data. -EVP_DigestSignFinal() signs the data in I and places the signature in I. -If I is NULL then the maximum size of the output buffer is written to +Unless I is NULL EVP_DigestSignFinal() signs the data in I +and places the signature in I. +Otherwise the maximum necessary size of the output buffer is written to the I parameter. If I is not NULL then before the call the I parameter should contain the length of the I buffer. If the call is successful the signature is written to I and the amount of data