summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2016-12-13 20:41:35 +0000
committerschwarze <schwarze@openbsd.org>2016-12-13 20:41:35 +0000
commit04bdb6772eefe3a4de33fd1df5bcc7174a118390 (patch)
treee0f72f5a701c3cb04175fc288f0d22c86bec8aee
parentFix up tsleep priorities and make them interruptible (diff)
downloadwireguard-openbsd-04bdb6772eefe3a4de33fd1df5bcc7174a118390.tar.xz
wireguard-openbsd-04bdb6772eefe3a4de33fd1df5bcc7174a118390.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--lib/libcrypto/man/Makefile3
-rw-r--r--lib/libcrypto/man/RSA_PSS_PARAMS_new.352
2 files changed, 54 insertions, 1 deletions
diff --git a/lib/libcrypto/man/Makefile b/lib/libcrypto/man/Makefile
index 2c70b7ec371..02895f010ac 100644
--- a/lib/libcrypto/man/Makefile
+++ b/lib/libcrypto/man/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.76 2016/12/13 14:31:55 schwarze Exp $
+# $OpenBSD: Makefile,v 1.77 2016/12/13 20:41:35 schwarze Exp $
.include <bsd.own.mk>
@@ -155,6 +155,7 @@ MAN= \
RAND_set_rand_method.3 \
RC4.3 \
RIPEMD160.3 \
+ RSA_PSS_PARAMS_new.3 \
RSA_blinding_on.3 \
RSA_check_key.3 \
RSA_generate_key.3 \
diff --git a/lib/libcrypto/man/RSA_PSS_PARAMS_new.3 b/lib/libcrypto/man/RSA_PSS_PARAMS_new.3
new file mode 100644
index 00000000000..8d6817b8bd4
--- /dev/null
+++ b/lib/libcrypto/man/RSA_PSS_PARAMS_new.3
@@ -0,0 +1,52 @@
+.\" $OpenBSD: RSA_PSS_PARAMS_new.3,v 1.1 2016/12/13 20:41:35 schwarze Exp $
+.\"
+.\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
+.\"
+.\" Permission to use, copy, modify, and distribute this software for any
+.\" purpose with or without fee is hereby granted, provided that the above
+.\" copyright notice and this permission notice appear in all copies.
+.\"
+.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+.\"
+.Dd $Mdocdate: December 13 2016 $
+.Dt RSA_PSS_PARAMS_NEW 3
+.Os
+.Sh NAME
+.Nm RSA_PSS_PARAMS_new ,
+.Nm RSA_PSS_PARAMS_free
+.Nd probabilistic signature scheme with RSA hashing
+.Sh SYNOPSIS
+.In openssl/rsa.h
+.Ft RSA_PSS_PARAMS *
+.Fn RSA_PSS_PARAMS_new void
+.Ft void
+.Fn RSA_PSS_PARAMS_free "RSA_PSS_PARAMS *params"
+.Sh DESCRIPTION
+.Fn RSA_PSS_PARAMS_new
+allocates and initializes an empty
+.Vt RSA_PSS_PARAMS
+object, representing an ASN.1 RSASSA-PSS-params structure
+defined in RFC 8017 appendix A.2.3.
+It references the hash function and the mask generation function
+and stores the length of the salt and the trailer field number.
+.Fn RSA_PSS_PARAMS_free
+frees
+.Fa params .
+.Sh RETURN VALUES
+.Fn RSA_PSS_PARAMS_new
+returns the new
+.Vt RSA_PSS_PARAMS
+object or
+.Dv NULL
+if an error occurs.
+.Sh SEE ALSO
+.Xr RSA_padding_add_PKCS1_type_1 3 ,
+.Xr X509_sign 3
+.Sh STANDARDS
+RFC 8017: PKCS#1: RSA Cryptography Specifications Version 2.2