summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/man/RSA_get_ex_new_index.311
-rw-r--r--src/lib/libcrypto/man/RSA_private_encrypt.36
-rw-r--r--src/lib/libcrypto/man/RSA_public_encrypt.36
-rw-r--r--src/lib/libcrypto/man/RSA_set_method.319
-rw-r--r--src/lib/libcrypto/man/SHA1.36
-rw-r--r--src/lib/libcrypto/man/UI_new.317
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
109Several OpenSSL structures can have application specific data attached 109Several OpenSSL structures can have application specific data attached
110to them. 110to them.
111This has several potential uses, it can be used to cache data associated 111This has several potential uses: it can be used to cache data associated
112with a structure (for example the hash of some part of the structure) or 112with a structure (for example the hash of some part of the structure) or
113some additional data (for example a handle to the data in an external 113some additional data (for example a handle to the data in an external
114library). 114library).
@@ -145,13 +145,14 @@ important because the optional functions are called in order of
145increasing index value. 145increasing index value.
146.Pp 146.Pp
147.Fn RSA_set_ex_data 147.Fn RSA_set_ex_data
148is used to set application specific data, the data is supplied in the 148is used to set application specific data.
149The data is supplied in the
149.Fa arg 150.Fa arg
150parameter and its precise meaning is up to the application. 151parameter 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
153is used to retrieve application specific data. 154is used to retrieve application specific data.
154The data is returned to the application, this will be the same value as 155The data is returned to the application, which will be the same value as
155supplied to a previous 156supplied to a previous
156.Fn RSA_set_ex_data 157.Fn RSA_set_ex_data
157call. 158call.
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
127is the padding mode that was used to sign the data. 127is 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
130returns the size of the signature (i.e., 130returns 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
133returns the size of the recovered message digest. 133returns 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
137is the padding mode that was used to encrypt the data. 137is 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
140returns the size of the encrypted data (i.e., 140returns 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
143returns the size of the recovered plaintext. 143returns 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 .
160This method may or may not be supplied by an 160This method may or may not be supplied by an
161.Vt ENGINE 161.Vt ENGINE
162implementation, but if it is, the return value can only be guaranteed 162implementation but if it is, the return value can only be guaranteed
163to be valid as long as the RSA key itself is valid and does not 163to be valid as long as the RSA key itself is valid and does not
164have its implementation changed by 164have 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
168returns the flags that are set for the current 168returns the flags that are set for the current
169.Vt RSA_METHOD 169.Vt RSA_METHOD
170of 170of
171.Fa rsa . 171.Fa rsa .
@@ -181,7 +181,7 @@ structure so that
181will be used for the RSA operations. 181will be used for the RSA operations.
182If 182If
183.Sy engine 183.Sy engine
184is NULL, the default ENGINE for RSA operations is used, and if no 184is NULL, the default ENGINE for RSA operations is used and, if no
185default ENGINE is set, the RSA_METHOD controlled by 185default ENGINE is set, the RSA_METHOD controlled by
186.Fn RSA_set_default_method 186.Fn RSA_set_default_method
187is used. 187is used.
@@ -349,9 +349,10 @@ RSA API without requiring changing these function prototypes.
349As of version 0.9.7, 349As of version 0.9.7,
350.Vt RSA_METHOD 350.Vt RSA_METHOD
351implementations are grouped together with other algorithmic APIs (e.g.\& 351implementations are grouped together with other algorithmic APIs (e.g.\&
352.Vt DSA_METHOD , 352.Vt DSA_METHOD
353.Vt EVP_CIPHER , 353or
354etc.) into 354.Vt EVP_CIPHER )
355into
355.Vt ENGINE 356.Vt ENGINE
356modules. 357modules.
357If a default 358If a default
@@ -368,7 +369,7 @@ use in RSA and other cryptographic algorithms.
368.Sh BUGS 369.Sh BUGS
369The behaviour of 370The behaviour of
370.Fn RSA_flags 371.Fn RSA_flags
371is a mis-feature that is left as-is for now to avoid creating 372is a misfeature that is left as-is for now to avoid creating
372compatibility problems. 373compatibility problems.
373RSA functionality, such as the encryption functions, are controlled by 374RSA functionality, such as the encryption functions, are controlled by
374the 375the
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
185SHA-1 (Secure Hash Algorithm) is a cryptographic hash function with a 185SHA-1 (Secure Hash Algorithm) is a cryptographic hash function with a
186160 bit output. 186160-bit output.
187.Pp 187.Pp
188.Fn SHA1 188.Fn SHA1
189computes the SHA-1 message digest of the 189computes 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
184UI stands for User Interface, and is general purpose set of routines 183UI stands for User Interface, and is a general purpose set of routines
185to prompt the user for text-based information. 184to prompt the user for text-based information.
186Through user-written methods (see 185Through 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
269a password, and to verify a password (i.e. having the user enter 268a password, and to verify a password (i.e. having the user enter
270it twice and check that the same string was entered twice). 269it twice and check that the same string was entered twice).
271.Fn UI_add_verify_string 270.Fn UI_add_verify_string
272takes and extra argument that should be a pointer to the result buffer 271takes an extra argument that should be a pointer to the result buffer
273of the input string that it's supposed to verify, or verification will 272of the input string that it's supposed to verify, or verification will
274fail. 273fail.
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
320is a helper function that can be used to create a prompt from two pieces 319is a helper function that can be used to create a prompt from two pieces
321of information: an description and a name. 320of information: a description and a name.
322The default constructor (if there is none provided by the method used) 321The default constructor (if there is none provided by the method used)
323creates a string "Enter 322creates 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
333adds a piece of memory for the method to use at any time. 332adds a piece of memory for the method to use at any time.
334The builtin UI method doesn't care about this info. 333The builtin UI method doesn't care about this info.
335Note that several calls to this function doesn't add data, it replaces 334Note that several calls to this function doesn't add data -
336the previous blob with the one given as argument. 335the 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
339retrieves the data that has last been given to the 338retrieves the data that has last been given to the