summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2016-12-13 20:41:35 +0000
committerschwarze <>2016-12-13 20:41:35 +0000
commit7d87870581103bf8006f12ad8538d3725795dde6 (patch)
treec26c0d45a283816db1a332efe6d70454ef480ca7
parente69633978b48bb77d90ccb78a8a7d673ca47e4ab (diff)
downloadopenbsd-7d87870581103bf8006f12ad8538d3725795dde6.tar.gz
openbsd-7d87870581103bf8006f12ad8538d3725795dde6.tar.bz2
openbsd-7d87870581103bf8006f12ad8538d3725795dde6.zip
Start RSA_PSS_PARAMS_new(3) stub from scratch. Both functions
are listed in <openssl/rsa.h> and OpenSSL doc/man3/X509_dup.pod. Note that the OpenSSL documentation specifies the wrong header file. More could probably be said about PSS, but this is a start...
-rw-r--r--src/lib/libcrypto/man/Makefile3
-rw-r--r--src/lib/libcrypto/man/RSA_PSS_PARAMS_new.352
2 files changed, 54 insertions, 1 deletions
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile
index 2c70b7ec37..02895f010a 100644
--- a/src/lib/libcrypto/man/Makefile
+++ b/src/lib/libcrypto/man/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.76 2016/12/13 14:31:55 schwarze Exp $ 1# $OpenBSD: Makefile,v 1.77 2016/12/13 20:41:35 schwarze Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4 4
@@ -155,6 +155,7 @@ MAN= \
155 RAND_set_rand_method.3 \ 155 RAND_set_rand_method.3 \
156 RC4.3 \ 156 RC4.3 \
157 RIPEMD160.3 \ 157 RIPEMD160.3 \
158 RSA_PSS_PARAMS_new.3 \
158 RSA_blinding_on.3 \ 159 RSA_blinding_on.3 \
159 RSA_check_key.3 \ 160 RSA_check_key.3 \
160 RSA_generate_key.3 \ 161 RSA_generate_key.3 \
diff --git a/src/lib/libcrypto/man/RSA_PSS_PARAMS_new.3 b/src/lib/libcrypto/man/RSA_PSS_PARAMS_new.3
new file mode 100644
index 0000000000..8d6817b8bd
--- /dev/null
+++ b/src/lib/libcrypto/man/RSA_PSS_PARAMS_new.3
@@ -0,0 +1,52 @@
1.\" $OpenBSD: RSA_PSS_PARAMS_new.3,v 1.1 2016/12/13 20:41:35 schwarze Exp $
2.\"
3.\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd $Mdocdate: December 13 2016 $
18.Dt RSA_PSS_PARAMS_NEW 3
19.Os
20.Sh NAME
21.Nm RSA_PSS_PARAMS_new ,
22.Nm RSA_PSS_PARAMS_free
23.Nd probabilistic signature scheme with RSA hashing
24.Sh SYNOPSIS
25.In openssl/rsa.h
26.Ft RSA_PSS_PARAMS *
27.Fn RSA_PSS_PARAMS_new void
28.Ft void
29.Fn RSA_PSS_PARAMS_free "RSA_PSS_PARAMS *params"
30.Sh DESCRIPTION
31.Fn RSA_PSS_PARAMS_new
32allocates and initializes an empty
33.Vt RSA_PSS_PARAMS
34object, representing an ASN.1 RSASSA-PSS-params structure
35defined in RFC 8017 appendix A.2.3.
36It references the hash function and the mask generation function
37and stores the length of the salt and the trailer field number.
38.Fn RSA_PSS_PARAMS_free
39frees
40.Fa params .
41.Sh RETURN VALUES
42.Fn RSA_PSS_PARAMS_new
43returns the new
44.Vt RSA_PSS_PARAMS
45object or
46.Dv NULL
47if an error occurs.
48.Sh SEE ALSO
49.Xr RSA_padding_add_PKCS1_type_1 3 ,
50.Xr X509_sign 3
51.Sh STANDARDS
52RFC 8017: PKCS#1: RSA Cryptography Specifications Version 2.2