summaryrefslogtreecommitdiff
path: root/lib/libcrypto/man/RSA_PSS_PARAMS_new.3
blob: f69f33dbe54b9521fb18c77ad0dcb6e9572f4fc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.\"	$OpenBSD: RSA_PSS_PARAMS_new.3,v 1.4 2019/06/06 01:06:59 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: June 6 2019 $
.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
.Vt 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_new 3 ,
.Xr RSA_padding_add_PKCS1_type_1 3 ,
.Xr X509_sign 3
.Sh STANDARDS
RFC 8017: PKCS#1: RSA Cryptography Specifications Version 2.2
.Sh HISTORY
.Fn RSA_PSS_PARAMS_new
and
.Fn RSA_PSS_PARAMS_free
first appeared in OpenSSL 1.0.1 and have been available since
.Ox 5.3 .