diff options
author | Jeffrey Walton <noloader@gmail.com> | 2014-06-29 23:34:21 +0100 |
---|---|---|
committer | Janusz Kozerski <j.kozerski@samsung.com> | 2014-10-20 15:25:29 +0200 |
commit | 0a985af7b63ba54e8d9139950c4ad540948f026f (patch) | |
tree | 281ae3275cce0d53f6c29dac825985c2710731c0 /doc | |
parent | cbae83756e006d26d4d07b07efa255ed8e34e912 (diff) | |
download | openssl-0a985af7b63ba54e8d9139950c4ad540948f026f.tar.gz openssl-0a985af7b63ba54e8d9139950c4ad540948f026f.tar.bz2 openssl-0a985af7b63ba54e8d9139950c4ad540948f026f.zip |
Clarified that the signature's buffer size, `s`, is not used as an
IN parameter.
Under the old docs, the only thing stated was "at most
EVP_PKEY_size(pkey) bytes will be written". It was kind of misleading
since it appears EVP_PKEY_size(pkey) WILL be written regardless of the
signature's buffer size.
(cherry picked from commit 6e6ba36d980f67b6e5c7b139f78da7acbbf8ec76)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/crypto/EVP_SignInit.pod | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/crypto/EVP_SignInit.pod b/doc/crypto/EVP_SignInit.pod index 620a623..14ecc77 100644 --- a/doc/crypto/EVP_SignInit.pod +++ b/doc/crypto/EVP_SignInit.pod @@ -30,9 +30,11 @@ signature context B<ctx>. This function can be called several times on the same B<ctx> to include additional data. EVP_SignFinal() signs the data in B<ctx> using the private key B<pkey> and -places the signature in B<sig>. The number of bytes of data written (i.e. the -length of the signature) will be written to the integer at B<s>, at most -EVP_PKEY_size(pkey) bytes will be written. +places the signature in B<sig>. B<sig> must be at least EVP_PKEY_size(pkey) +bytes in size. B<s> is an OUT paramter, and not used as an IN parameter. +The number of bytes of data written (i.e. the length of the signature) +will be written to the integer at B<s>, at most EVP_PKEY_size(pkey) bytes +will be written. EVP_SignInit() initializes a signing context B<ctx> to use the default implementation of digest B<type>. |