diff options
author | jmc <> | 2016-12-02 19:28:41 +0000 |
---|---|---|
committer | jmc <> | 2016-12-02 19:28:41 +0000 |
commit | 92e3251f85c680232fbb1ad5808ec9e7937e6de0 (patch) | |
tree | 152239405c56b48f3cd636b9eaab6631af067773 /src/lib | |
parent | edeca41299a79a482a3b568a3315d09a7684f347 (diff) | |
download | openbsd-92e3251f85c680232fbb1ad5808ec9e7937e6de0.tar.gz openbsd-92e3251f85c680232fbb1ad5808ec9e7937e6de0.tar.bz2 openbsd-92e3251f85c680232fbb1ad5808ec9e7937e6de0.zip |
minor cleanup;
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/man/RSA_get_ex_new_index.3 | 11 | ||||
-rw-r--r-- | src/lib/libcrypto/man/RSA_private_encrypt.3 | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/man/RSA_public_encrypt.3 | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/man/RSA_set_method.3 | 19 | ||||
-rw-r--r-- | src/lib/libcrypto/man/SHA1.3 | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/man/UI_new.3 | 17 |
6 files changed, 33 insertions, 32 deletions
diff --git a/src/lib/libcrypto/man/RSA_get_ex_new_index.3 b/src/lib/libcrypto/man/RSA_get_ex_new_index.3 index 559d3ee110..3476751630 100644 --- a/src/lib/libcrypto/man/RSA_get_ex_new_index.3 +++ b/src/lib/libcrypto/man/RSA_get_ex_new_index.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: RSA_get_ex_new_index.3,v 1.3 2016/11/29 16:46:41 schwarze Exp $ | 1 | .\" $OpenBSD: RSA_get_ex_new_index.3,v 1.4 2016/12/02 19:28:41 jmc Exp $ |
2 | .\" OpenSSL 35cb565a Nov 19 15:49:30 2015 -0500 | 2 | .\" OpenSSL 35cb565a Nov 19 15:49:30 2015 -0500 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Ulf Moeller <ulf@openssl.org> and | 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org> and |
@@ -49,7 +49,7 @@ | |||
49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
51 | .\" | 51 | .\" |
52 | .Dd $Mdocdate: November 29 2016 $ | 52 | .Dd $Mdocdate: December 2 2016 $ |
53 | .Dt RSA_GET_EX_NEW_INDEX 3 | 53 | .Dt RSA_GET_EX_NEW_INDEX 3 |
54 | .Os | 54 | .Os |
55 | .Sh NAME | 55 | .Sh NAME |
@@ -108,7 +108,7 @@ | |||
108 | .Sh DESCRIPTION | 108 | .Sh DESCRIPTION |
109 | Several OpenSSL structures can have application specific data attached | 109 | Several OpenSSL structures can have application specific data attached |
110 | to them. | 110 | to them. |
111 | This has several potential uses, it can be used to cache data associated | 111 | This has several potential uses: it can be used to cache data associated |
112 | with a structure (for example the hash of some part of the structure) or | 112 | with a structure (for example the hash of some part of the structure) or |
113 | some additional data (for example a handle to the data in an external | 113 | some additional data (for example a handle to the data in an external |
114 | library). | 114 | library). |
@@ -145,13 +145,14 @@ important because the optional functions are called in order of | |||
145 | increasing index value. | 145 | increasing index value. |
146 | .Pp | 146 | .Pp |
147 | .Fn RSA_set_ex_data | 147 | .Fn RSA_set_ex_data |
148 | is used to set application specific data, the data is supplied in the | 148 | is used to set application specific data. |
149 | The data is supplied in the | ||
149 | .Fa arg | 150 | .Fa arg |
150 | parameter and its precise meaning is up to the application. | 151 | parameter and its precise meaning is up to the application. |
151 | .Pp | 152 | .Pp |
152 | .Fn RSA_get_ex_data | 153 | .Fn RSA_get_ex_data |
153 | is used to retrieve application specific data. | 154 | is used to retrieve application specific data. |
154 | The data is returned to the application, this will be the same value as | 155 | The data is returned to the application, which will be the same value as |
155 | supplied to a previous | 156 | supplied to a previous |
156 | .Fn RSA_set_ex_data | 157 | .Fn RSA_set_ex_data |
157 | call. | 158 | call. |
diff --git a/src/lib/libcrypto/man/RSA_private_encrypt.3 b/src/lib/libcrypto/man/RSA_private_encrypt.3 index 2144d4f365..4c83cc2cee 100644 --- a/src/lib/libcrypto/man/RSA_private_encrypt.3 +++ b/src/lib/libcrypto/man/RSA_private_encrypt.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: RSA_private_encrypt.3,v 1.3 2016/11/29 16:46:41 schwarze Exp $ | 1 | .\" $OpenBSD: RSA_private_encrypt.3,v 1.4 2016/12/02 19:28:41 jmc Exp $ |
2 | .\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 | 2 | .\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>. | 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>. |
@@ -48,7 +48,7 @@ | |||
48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
50 | .\" | 50 | .\" |
51 | .Dd $Mdocdate: November 29 2016 $ | 51 | .Dd $Mdocdate: December 2 2016 $ |
52 | .Dt RSA_PRIVATE_ENCRYPT 3 | 52 | .Dt RSA_PRIVATE_ENCRYPT 3 |
53 | .Os | 53 | .Os |
54 | .Sh NAME | 54 | .Sh NAME |
@@ -127,7 +127,7 @@ must point to a memory section large enough to hold the message digest | |||
127 | is the padding mode that was used to sign the data. | 127 | is the padding mode that was used to sign the data. |
128 | .Sh RETURN VALUES | 128 | .Sh RETURN VALUES |
129 | .Fn RSA_private_encrypt | 129 | .Fn RSA_private_encrypt |
130 | returns the size of the signature (i.e., | 130 | returns the size of the signature (i.e.\& |
131 | .Fn RSA_size rsa ) . | 131 | .Fn RSA_size rsa ) . |
132 | .Fn RSA_public_decrypt | 132 | .Fn RSA_public_decrypt |
133 | returns the size of the recovered message digest. | 133 | returns the size of the recovered message digest. |
diff --git a/src/lib/libcrypto/man/RSA_public_encrypt.3 b/src/lib/libcrypto/man/RSA_public_encrypt.3 index 7162bf0a7d..f1c7737eb4 100644 --- a/src/lib/libcrypto/man/RSA_public_encrypt.3 +++ b/src/lib/libcrypto/man/RSA_public_encrypt.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: RSA_public_encrypt.3,v 1.3 2016/11/29 16:46:41 schwarze Exp $ | 1 | .\" $OpenBSD: RSA_public_encrypt.3,v 1.4 2016/12/02 19:28:41 jmc Exp $ |
2 | .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 | 2 | .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>. | 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>. |
@@ -48,7 +48,7 @@ | |||
48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
50 | .\" | 50 | .\" |
51 | .Dd $Mdocdate: November 29 2016 $ | 51 | .Dd $Mdocdate: December 2 2016 $ |
52 | .Dt RSA_PUBLIC_ENCRYPT 3 | 52 | .Dt RSA_PUBLIC_ENCRYPT 3 |
53 | .Os | 53 | .Os |
54 | .Sh NAME | 54 | .Sh NAME |
@@ -137,7 +137,7 @@ must point to a memory section large enough to hold the decrypted data | |||
137 | is the padding mode that was used to encrypt the data. | 137 | is the padding mode that was used to encrypt the data. |
138 | .Sh RETURN VALUES | 138 | .Sh RETURN VALUES |
139 | .Fn RSA_public_encrypt | 139 | .Fn RSA_public_encrypt |
140 | returns the size of the encrypted data (i.e., | 140 | returns the size of the encrypted data (i.e.\& |
141 | .Fn RSA_size rsa ) . | 141 | .Fn RSA_size rsa ) . |
142 | .Fn RSA_private_decrypt | 142 | .Fn RSA_private_decrypt |
143 | returns the size of the recovered plaintext. | 143 | returns the size of the recovered plaintext. |
diff --git a/src/lib/libcrypto/man/RSA_set_method.3 b/src/lib/libcrypto/man/RSA_set_method.3 index beb9f25a30..5b6cf8442e 100644 --- a/src/lib/libcrypto/man/RSA_set_method.3 +++ b/src/lib/libcrypto/man/RSA_set_method.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: RSA_set_method.3,v 1.3 2016/11/29 16:46:41 schwarze Exp $ | 1 | .\" $OpenBSD: RSA_set_method.3,v 1.4 2016/12/02 19:28:41 jmc Exp $ |
2 | .\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 | 2 | .\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Ulf Moeller <ulf@openssl.org> | 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org> |
@@ -50,7 +50,7 @@ | |||
50 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 50 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
52 | .\" | 52 | .\" |
53 | .Dd $Mdocdate: November 29 2016 $ | 53 | .Dd $Mdocdate: December 2 2016 $ |
54 | .Dt RSA_SET_METHOD 3 | 54 | .Dt RSA_SET_METHOD 3 |
55 | .Os | 55 | .Os |
56 | .Sh NAME | 56 | .Sh NAME |
@@ -159,13 +159,13 @@ being used by | |||
159 | .Fa rsa . | 159 | .Fa rsa . |
160 | This method may or may not be supplied by an | 160 | This method may or may not be supplied by an |
161 | .Vt ENGINE | 161 | .Vt ENGINE |
162 | implementation, but if it is, the return value can only be guaranteed | 162 | implementation but if it is, the return value can only be guaranteed |
163 | to be valid as long as the RSA key itself is valid and does not | 163 | to be valid as long as the RSA key itself is valid and does not |
164 | have its implementation changed by | 164 | have its implementation changed by |
165 | .Fn RSA_set_method . | 165 | .Fn RSA_set_method . |
166 | .Pp | 166 | .Pp |
167 | .Fn RSA_flags | 167 | .Fn RSA_flags |
168 | returns the flags that are set for the current | 168 | returns the flags that are set for the current |
169 | .Vt RSA_METHOD | 169 | .Vt RSA_METHOD |
170 | of | 170 | of |
171 | .Fa rsa . | 171 | .Fa rsa . |
@@ -181,7 +181,7 @@ structure so that | |||
181 | will be used for the RSA operations. | 181 | will be used for the RSA operations. |
182 | If | 182 | If |
183 | .Sy engine | 183 | .Sy engine |
184 | is NULL, the default ENGINE for RSA operations is used, and if no | 184 | is NULL, the default ENGINE for RSA operations is used and, if no |
185 | default ENGINE is set, the RSA_METHOD controlled by | 185 | default ENGINE is set, the RSA_METHOD controlled by |
186 | .Fn RSA_set_default_method | 186 | .Fn RSA_set_default_method |
187 | is used. | 187 | is used. |
@@ -349,9 +349,10 @@ RSA API without requiring changing these function prototypes. | |||
349 | As of version 0.9.7, | 349 | As of version 0.9.7, |
350 | .Vt RSA_METHOD | 350 | .Vt RSA_METHOD |
351 | implementations are grouped together with other algorithmic APIs (e.g.\& | 351 | implementations are grouped together with other algorithmic APIs (e.g.\& |
352 | .Vt DSA_METHOD , | 352 | .Vt DSA_METHOD |
353 | .Vt EVP_CIPHER , | 353 | or |
354 | etc.) into | 354 | .Vt EVP_CIPHER ) |
355 | into | ||
355 | .Vt ENGINE | 356 | .Vt ENGINE |
356 | modules. | 357 | modules. |
357 | If a default | 358 | If a default |
@@ -368,7 +369,7 @@ use in RSA and other cryptographic algorithms. | |||
368 | .Sh BUGS | 369 | .Sh BUGS |
369 | The behaviour of | 370 | The behaviour of |
370 | .Fn RSA_flags | 371 | .Fn RSA_flags |
371 | is a mis-feature that is left as-is for now to avoid creating | 372 | is a misfeature that is left as-is for now to avoid creating |
372 | compatibility problems. | 373 | compatibility problems. |
373 | RSA functionality, such as the encryption functions, are controlled by | 374 | RSA functionality, such as the encryption functions, are controlled by |
374 | the | 375 | the |
diff --git a/src/lib/libcrypto/man/SHA1.3 b/src/lib/libcrypto/man/SHA1.3 index 97f6b55438..48676aa89f 100644 --- a/src/lib/libcrypto/man/SHA1.3 +++ b/src/lib/libcrypto/man/SHA1.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: SHA1.3,v 1.3 2016/11/29 17:33:49 schwarze Exp $ | 1 | .\" $OpenBSD: SHA1.3,v 1.4 2016/12/02 19:28:41 jmc Exp $ |
2 | .\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 | 2 | .\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Ulf Moeller <ulf@openssl.org> and | 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org> and |
@@ -49,7 +49,7 @@ | |||
49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
51 | .\" | 51 | .\" |
52 | .Dd $Mdocdate: November 29 2016 $ | 52 | .Dd $Mdocdate: December 2 2016 $ |
53 | .Dt SHA1 3 | 53 | .Dt SHA1 3 |
54 | .Os | 54 | .Os |
55 | .Sh NAME | 55 | .Sh NAME |
@@ -183,7 +183,7 @@ | |||
183 | .Fc | 183 | .Fc |
184 | .Sh DESCRIPTION | 184 | .Sh DESCRIPTION |
185 | SHA-1 (Secure Hash Algorithm) is a cryptographic hash function with a | 185 | SHA-1 (Secure Hash Algorithm) is a cryptographic hash function with a |
186 | 160 bit output. | 186 | 160-bit output. |
187 | .Pp | 187 | .Pp |
188 | .Fn SHA1 | 188 | .Fn SHA1 |
189 | computes the SHA-1 message digest of the | 189 | computes the SHA-1 message digest of the |
diff --git a/src/lib/libcrypto/man/UI_new.3 b/src/lib/libcrypto/man/UI_new.3 index 79078eb24c..a04254632b 100644 --- a/src/lib/libcrypto/man/UI_new.3 +++ b/src/lib/libcrypto/man/UI_new.3 | |||
@@ -1,6 +1,6 @@ | |||
1 | .\" $OpenBSD: UI_new.3,v 1.2 2016/11/06 15:52:50 jmc Exp $ | 1 | .\" $OpenBSD: UI_new.3,v 1.3 2016/12/02 19:28:41 jmc Exp $ |
2 | .\" | 2 | .\" |
3 | .Dd $Mdocdate: November 6 2016 $ | 3 | .Dd $Mdocdate: December 2 2016 $ |
4 | .Dt UI_NEW 3 | 4 | .Dt UI_NEW 3 |
5 | .Os | 5 | .Os |
6 | .Sh NAME | 6 | .Sh NAME |
@@ -27,8 +27,7 @@ | |||
27 | .Nm UI_get_default_method , | 27 | .Nm UI_get_default_method , |
28 | .Nm UI_get_method , | 28 | .Nm UI_get_method , |
29 | .Nm UI_set_method , | 29 | .Nm UI_set_method , |
30 | .Nm UI_OpenSSL , | 30 | .Nm UI_OpenSSL |
31 | .Nm ERR_load_UI_strings | ||
32 | .Nd New User Interface | 31 | .Nd New User Interface |
33 | .Sh SYNOPSIS | 32 | .Sh SYNOPSIS |
34 | .In openssl/ui.h | 33 | .In openssl/ui.h |
@@ -181,7 +180,7 @@ | |||
181 | .Fa void | 180 | .Fa void |
182 | .Fc | 181 | .Fc |
183 | .Sh DESCRIPTION | 182 | .Sh DESCRIPTION |
184 | UI stands for User Interface, and is general purpose set of routines | 183 | UI stands for User Interface, and is a general purpose set of routines |
185 | to prompt the user for text-based information. | 184 | to prompt the user for text-based information. |
186 | Through user-written methods (see | 185 | Through user-written methods (see |
187 | .Xr ui_create 3 ) , | 186 | .Xr ui_create 3 ) , |
@@ -269,7 +268,7 @@ The given information is used to prompt for information, for example | |||
269 | a password, and to verify a password (i.e. having the user enter | 268 | a password, and to verify a password (i.e. having the user enter |
270 | it twice and check that the same string was entered twice). | 269 | it twice and check that the same string was entered twice). |
271 | .Fn UI_add_verify_string | 270 | .Fn UI_add_verify_string |
272 | takes and extra argument that should be a pointer to the result buffer | 271 | takes an extra argument that should be a pointer to the result buffer |
273 | of the input string that it's supposed to verify, or verification will | 272 | of the input string that it's supposed to verify, or verification will |
274 | fail. | 273 | fail. |
275 | .Pp | 274 | .Pp |
@@ -318,7 +317,7 @@ counterparts, except that they make their own copies of all strings. | |||
318 | .Pp | 317 | .Pp |
319 | .Fn UI_construct_prompt | 318 | .Fn UI_construct_prompt |
320 | is a helper function that can be used to create a prompt from two pieces | 319 | is a helper function that can be used to create a prompt from two pieces |
321 | of information: an description and a name. | 320 | of information: a description and a name. |
322 | The default constructor (if there is none provided by the method used) | 321 | The default constructor (if there is none provided by the method used) |
323 | creates a string "Enter | 322 | creates a string "Enter |
324 | .Em description | 323 | .Em description |
@@ -332,8 +331,8 @@ other method functions. | |||
332 | .Fn UI_add_user_data | 331 | .Fn UI_add_user_data |
333 | adds a piece of memory for the method to use at any time. | 332 | adds a piece of memory for the method to use at any time. |
334 | The builtin UI method doesn't care about this info. | 333 | The builtin UI method doesn't care about this info. |
335 | Note that several calls to this function doesn't add data, it replaces | 334 | Note that several calls to this function doesn't add data - |
336 | the previous blob with the one given as argument. | 335 | the previous blob is replaced with the one given as argument. |
337 | .Pp | 336 | .Pp |
338 | .Fn UI_get0_user_data | 337 | .Fn UI_get0_user_data |
339 | retrieves the data that has last been given to the | 338 | retrieves the data that has last been given to the |