import libcrypto (LibreSSL 2.5.2)
[unleashed.git] / lib / libcrypto / man / RSA_PSS_PARAMS_new.3
blob25a1c25ed32c9944c7d9917de8e140bd5394f4f9
1 .\"     $OpenBSD: RSA_PSS_PARAMS_new.3,v 1.2 2016/12/25 22:15:10 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 25 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
32 allocates and initializes an empty
33 .Vt RSA_PSS_PARAMS
34 object, representing an ASN.1
35 .Vt RSASSA-PSS-params
36 structure defined in RFC 8017 appendix A.2.3.
37 It references the hash function and the mask generation function
38 and stores the length of the salt and the trailer field number.
39 .Fn RSA_PSS_PARAMS_free
40 frees
41 .Fa params .
42 .Sh RETURN VALUES
43 .Fn RSA_PSS_PARAMS_new
44 returns the new
45 .Vt RSA_PSS_PARAMS
46 object or
47 .Dv NULL
48 if an error occurs.
49 .Sh SEE ALSO
50 .Xr RSA_padding_add_PKCS1_type_1 3 ,
51 .Xr X509_sign 3
52 .Sh STANDARDS
53 RFC 8017: PKCS#1: RSA Cryptography Specifications Version 2.2