DOC: Make EVP_SignInit.pod conform with man-pages(7)
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
(cherry picked from commit 03d65ca2095777cf6314ad813eb7de5779c9b93d)
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/11232)
Richard Levitte authored 4 years ago
Dr. Matthias St. Pierre committed 4 years ago
19 | 19 | The EVP signature routines are a high level interface to digital |
20 | 20 | signatures. |
21 | 21 | |
22 | EVP_SignInit_ex() sets up signing context B<ctx> to use digest | |
23 | B<type> from ENGINE B<impl>. B<ctx> must be created with | |
22 | EVP_SignInit_ex() sets up signing context I<ctx> to use digest | |
23 | I<type> from B<ENGINE> I<impl>. I<ctx> must be created with | |
24 | 24 | EVP_MD_CTX_new() before calling this function. |
25 | 25 | |
26 | EVP_SignUpdate() hashes B<cnt> bytes of data at B<d> into the | |
27 | signature context B<ctx>. This function can be called several times on the | |
28 | same B<ctx> to include additional data. | |
26 | EVP_SignUpdate() hashes I<cnt> bytes of data at I<d> into the | |
27 | signature context I<ctx>. This function can be called several times on the | |
28 | same I<ctx> to include additional data. | |
29 | 29 | |
30 | EVP_SignFinal() signs the data in B<ctx> using the private key B<pkey> and | |
31 | places the signature in B<sig>. B<sig> must be at least C<EVP_PKEY_size(pkey)> | |
32 | bytes in size. B<s> is an OUT parameter, and not used as an IN parameter. | |
30 | EVP_SignFinal() signs the data in I<ctx> using the private key I<pkey> and | |
31 | places the signature in I<sig>. I<sig> must be at least C<EVP_PKEY_size(pkey)> | |
32 | bytes in size. I<s> is an OUT parameter, and not used as an IN parameter. | |
33 | 33 | The number of bytes of data written (i.e. the length of the signature) |
34 | will be written to the integer at B<s>, at most C<EVP_PKEY_size(pkey)> bytes | |
34 | will be written to the integer at I<s>, at most C<EVP_PKEY_size(pkey)> bytes | |
35 | 35 | will be written. |
36 | 36 | |
37 | EVP_SignInit() initializes a signing context B<ctx> to use the default | |
38 | implementation of digest B<type>. | |
37 | EVP_SignInit() initializes a signing context I<ctx> to use the default | |
38 | implementation of digest I<type>. | |
39 | 39 | |
40 | 40 | =head1 RETURN VALUES |
41 | 41 |