summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/RSA_sign.3
diff options
context:
space:
mode:
authorschwarze <>2016-11-29 16:45:43 +0000
committerschwarze <>2016-11-29 16:45:43 +0000
commit768b89fdd3800bdb918526515e09813b42bb9e14 (patch)
tree8405748e372bc149e4fc2e94b40252f2452b3fd3 /src/lib/libcrypto/man/RSA_sign.3
parent54b3b75700fb8ef2fa3c0bf848ba59cc717e7afc (diff)
downloadopenbsd-768b89fdd3800bdb918526515e09813b42bb9e14.tar.gz
openbsd-768b89fdd3800bdb918526515e09813b42bb9e14.tar.bz2
openbsd-768b89fdd3800bdb918526515e09813b42bb9e14.zip
Add Copyright and license.
Merge various improvements from OpenSSL: Clarify a reference to a standard. Stop advertising ancient hash functions. Remove incorrect statements about error return values. Delete a cross reference to the non-existent page objects(3).
Diffstat (limited to 'src/lib/libcrypto/man/RSA_sign.3')
-rw-r--r--src/lib/libcrypto/man/RSA_sign.368
1 files changed, 54 insertions, 14 deletions
diff --git a/src/lib/libcrypto/man/RSA_sign.3 b/src/lib/libcrypto/man/RSA_sign.3
index afc24e6581..36f11a56bd 100644
--- a/src/lib/libcrypto/man/RSA_sign.3
+++ b/src/lib/libcrypto/man/RSA_sign.3
@@ -1,6 +1,55 @@
1.\" $OpenBSD: RSA_sign.3,v 1.2 2016/11/06 15:52:50 jmc Exp $ 1.\" $OpenBSD: RSA_sign.3,v 1.3 2016/11/29 16:45:43 schwarze Exp $
2.\" OpenSSL aa90ca11 Aug 20 15:48:56 2016 -0400
2.\" 3.\"
3.Dd $Mdocdate: November 6 2016 $ 4.\" This file was written by Ulf Moeller <ulf@openssl.org>.
5.\" Copyright (c) 2000, 2005, 2014, 2015, 2016 The OpenSSL Project.
6.\" All rights reserved.
7.\"
8.\" Redistribution and use in source and binary forms, with or without
9.\" modification, are permitted provided that the following conditions
10.\" are met:
11.\"
12.\" 1. Redistributions of source code must retain the above copyright
13.\" notice, this list of conditions and the following disclaimer.
14.\"
15.\" 2. Redistributions in binary form must reproduce the above copyright
16.\" notice, this list of conditions and the following disclaimer in
17.\" the documentation and/or other materials provided with the
18.\" distribution.
19.\"
20.\" 3. All advertising materials mentioning features or use of this
21.\" software must display the following acknowledgment:
22.\" "This product includes software developed by the OpenSSL Project
23.\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
24.\"
25.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
26.\" endorse or promote products derived from this software without
27.\" prior written permission. For written permission, please contact
28.\" openssl-core@openssl.org.
29.\"
30.\" 5. Products derived from this software may not be called "OpenSSL"
31.\" nor may "OpenSSL" appear in their names without prior written
32.\" permission of the OpenSSL Project.
33.\"
34.\" 6. Redistributions of any form whatsoever must retain the following
35.\" acknowledgment:
36.\" "This product includes software developed by the OpenSSL Project
37.\" for use in the OpenSSL Toolkit (http://www.openssl.org/)"
38.\"
39.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
40.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
41.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
42.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
43.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
44.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
45.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
46.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
47.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
48.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\"
52.Dd $Mdocdate: November 29 2016 $
4.Dt RSA_SIGN 3 53.Dt RSA_SIGN 3
5.Os 54.Os
6.Sh NAME 55.Sh NAME
@@ -35,7 +84,7 @@ of size
35.Fa m_len 84.Fa m_len
36using the private key 85using the private key
37.Fa rsa 86.Fa rsa
38as specified in PKCS #1 v2.0. 87using RSASSA-PKCS1-v1_5 as specified in RFC 3447.
39It stores the signature in 88It stores the signature in
40.Fa sigret 89.Fa sigret
41and the signature size in 90and the signature size in
@@ -53,14 +102,6 @@ for lower-level operations.
53.Fa type 102.Fa type
54denotes the message digest algorithm that was used to generate 103denotes the message digest algorithm that was used to generate
55.Fa m . 104.Fa m .
56It usually is one of
57.Dv NID_sha1 ,
58.Dv NID_ripemd160 ,
59or
60.Dv NID_md5 ;
61see
62.Xr OBJ_nid2obj 3
63for details.
64If 105If
65.Fa type 106.Fa type
66is 107is
@@ -84,15 +125,14 @@ signature.
84is the signer's public key. 125is the signer's public key.
85.Sh RETURN VALUES 126.Sh RETURN VALUES
86.Fn RSA_sign 127.Fn RSA_sign
87returns 1 on success or 0 otherwise. 128returns 1 on success.
88.Fn RSA_verify 129.Fn RSA_verify
89returns 1 on successful verification or 0 otherwise. 130returns 1 on successful verification.
90.Pp 131.Pp
91The error codes can be obtained by 132The error codes can be obtained by
92.Xr ERR_get_error 3 . 133.Xr ERR_get_error 3 .
93.Sh SEE ALSO 134.Sh SEE ALSO
94.Xr ERR_get_error 3 , 135.Xr ERR_get_error 3 ,
95.Xr objects 3 ,
96.Xr rsa 3 , 136.Xr rsa 3 ,
97.Xr RSA_private_encrypt 3 , 137.Xr RSA_private_encrypt 3 ,
98.Xr RSA_public_decrypt 3 138.Xr RSA_public_decrypt 3