diff options
| author | schwarze <> | 2016-12-26 17:19:23 +0000 | 
|---|---|---|
| committer | schwarze <> | 2016-12-26 17:19:23 +0000 | 
| commit | 6319329093030fd753a733caa048a65c320842ae (patch) | |
| tree | 30e305612e0c7aae5e2e59f87efdd2115033ee5d /src | |
| parent | 73e5c259bd76479d2f7b076bb6749495559686b8 (diff) | |
| download | openbsd-6319329093030fd753a733caa048a65c320842ae.tar.gz openbsd-6319329093030fd753a733caa048a65c320842ae.tar.bz2 openbsd-6319329093030fd753a733caa048a65c320842ae.zip | |
Document d2i_RSA_PSS_PARAMS(3) and i2d_RSA_PSS_PARAMS(3)
found in OpenSSL doc/man3/d2i_X509.pod.
Add STANDARDS references.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/d2i_RSAPublicKey.3 | 66 | 
1 files changed, 60 insertions, 6 deletions
| diff --git a/src/lib/libcrypto/man/d2i_RSAPublicKey.3 b/src/lib/libcrypto/man/d2i_RSAPublicKey.3 index ea7736e2dc..c5264a610b 100644 --- a/src/lib/libcrypto/man/d2i_RSAPublicKey.3 +++ b/src/lib/libcrypto/man/d2i_RSAPublicKey.3 | |||
| @@ -1,7 +1,24 @@ | |||
| 1 | .\" $OpenBSD: d2i_RSAPublicKey.3,v 1.8 2016/12/26 16:52:25 schwarze Exp $ | 1 | .\" $OpenBSD: d2i_RSAPublicKey.3,v 1.9 2016/12/26 17:19:23 schwarze Exp $ | 
| 2 | .\" OpenSSL bb9ad09e Jun 6 00:43:05 2016 -0400 | 2 | .\" OpenSSL bb9ad09e Jun 6 00:43:05 2016 -0400 | 
| 3 | .\" | 3 | .\" | 
| 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org> and | 4 | .\" This file is a derived work. | 
| 5 | .\" The changes are covered by the following Copyright and license: | ||
| 6 | .\" | ||
| 7 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> | ||
| 8 | .\" | ||
| 9 | .\" Permission to use, copy, modify, and distribute this software for any | ||
| 10 | .\" purpose with or without fee is hereby granted, provided that the above | ||
| 11 | .\" copyright notice and this permission notice appear in all copies. | ||
| 12 | .\" | ||
| 13 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 14 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 15 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| 16 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 17 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| 18 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 19 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 20 | .\" | ||
| 21 | .\" The original file was written by Ulf Moeller <ulf@openssl.org> and | ||
| 5 | .\" Dr. Stephen Henson <steve@openssl.org>. | 22 | .\" Dr. Stephen Henson <steve@openssl.org>. | 
| 6 | .\" Copyright (c) 2000, 2002, 2003, 2009, 2016 The OpenSSL Project. | 23 | .\" Copyright (c) 2000, 2002, 2003, 2009, 2016 The OpenSSL Project. | 
| 7 | .\" All rights reserved. | 24 | .\" All rights reserved. | 
| @@ -60,6 +77,8 @@ | |||
| 60 | .Nm i2d_RSAPrivateKey , | 77 | .Nm i2d_RSAPrivateKey , | 
| 61 | .Nm d2i_Netscape_RSA , | 78 | .Nm d2i_Netscape_RSA , | 
| 62 | .Nm i2d_Netscape_RSA , | 79 | .Nm i2d_Netscape_RSA , | 
| 80 | .Nm d2i_RSA_PSS_PARAMS , | ||
| 81 | .Nm i2d_RSA_PSS_PARAMS , | ||
| 63 | .Nm d2i_RSAPublicKey_bio , | 82 | .Nm d2i_RSAPublicKey_bio , | 
| 64 | .Nm d2i_RSAPublicKey_fp , | 83 | .Nm d2i_RSAPublicKey_fp , | 
| 65 | .Nm i2d_RSAPublicKey_bio , | 84 | .Nm i2d_RSAPublicKey_bio , | 
| @@ -74,7 +93,7 @@ | |||
| 74 | .Nm d2i_RSA_PUBKEY_fp , | 93 | .Nm d2i_RSA_PUBKEY_fp , | 
| 75 | .Nm i2d_RSA_PUBKEY_bio , | 94 | .Nm i2d_RSA_PUBKEY_bio , | 
| 76 | .Nm i2d_RSA_PUBKEY_fp | 95 | .Nm i2d_RSA_PUBKEY_fp | 
| 77 | .Nd decode and encode RSA keys | 96 | .Nd decode and encode RSA keys and parameters | 
| 78 | .Sh SYNOPSIS | 97 | .Sh SYNOPSIS | 
| 79 | .In openssl/rsa.h | 98 | .In openssl/rsa.h | 
| 80 | .Ft RSA * | 99 | .Ft RSA * | 
| @@ -112,6 +131,17 @@ | |||
| 112 | .Fa "unsigned char **der_out" | 131 | .Fa "unsigned char **der_out" | 
| 113 | .Fa "int (*cb)()" | 132 | .Fa "int (*cb)()" | 
| 114 | .Fc | 133 | .Fc | 
| 134 | .Ft RSA_PSS_PARAMS * | ||
| 135 | .Fo d2i_RSA_PSS_PARAMS | ||
| 136 | .Fa "RSA_PSS_PARAMS **val_out" | ||
| 137 | .Fa "const unsigned char **der_in" | ||
| 138 | .Fa "long length" | ||
| 139 | .Fc | ||
| 140 | .Ft int | ||
| 141 | .Fo i2d_RSA_PSS_PARAMS | ||
| 142 | .Fa "RSA_PSS_PARAMS *val_in" | ||
| 143 | .Fa "unsigned char **der_out" | ||
| 144 | .Fc | ||
| 115 | .In openssl/x509.h | 145 | .In openssl/x509.h | 
| 116 | .Ft RSA * | 146 | .Ft RSA * | 
| 117 | .Fo d2i_RSAPublicKey_bio | 147 | .Fo d2i_RSAPublicKey_bio | 
| @@ -194,7 +224,7 @@ and | |||
| 194 | .Fn i2d_RSAPublicKey | 224 | .Fn i2d_RSAPublicKey | 
| 195 | decode and encode a PKCS#1 | 225 | decode and encode a PKCS#1 | 
| 196 | .Vt RSAPublicKey | 226 | .Vt RSAPublicKey | 
| 197 | structure. | 227 | structure defined in RFC 8017 appendix A.1.1. | 
| 198 | .Fn d2i_RSAPublicKey_bio , | 228 | .Fn d2i_RSAPublicKey_bio , | 
| 199 | .Fn d2i_RSAPublicKey_fp , | 229 | .Fn d2i_RSAPublicKey_fp , | 
| 200 | .Fn i2d_RSAPublicKey_bio , | 230 | .Fn i2d_RSAPublicKey_bio , | 
| @@ -211,7 +241,7 @@ and | |||
| 211 | .Fn i2d_RSAPrivateKey | 241 | .Fn i2d_RSAPrivateKey | 
| 212 | decode and encode a PKCS#1 | 242 | decode and encode a PKCS#1 | 
| 213 | .Vt RSAPrivateKey | 243 | .Vt RSAPrivateKey | 
| 214 | structure. | 244 | structure defined in RFC 8017 appendix A.1.2. | 
| 215 | The | 245 | The | 
| 216 | .Vt RSA | 246 | .Vt RSA | 
| 217 | structure passed to the private key encoding functions should have | 247 | structure passed to the private key encoding functions should have | 
| @@ -238,12 +268,21 @@ certain very old software. | |||
| 238 | The NET format has some severe security weaknesses and should be | 268 | The NET format has some severe security weaknesses and should be | 
| 239 | avoided if possible. | 269 | avoided if possible. | 
| 240 | .Pp | 270 | .Pp | 
| 271 | .Fn d2i_RSA_PSS_PARAMS | ||
| 272 | and | ||
| 273 | .Fn i2d_RSA_PSS_PARAMS | ||
| 274 | decode and encode a PKCS#1 | ||
| 275 | .Vt RSASSA-PSS-params | ||
| 276 | structure defined in RFC 8017 appendix A.2.3 and documented in | ||
| 277 | .Xr RSA_PSS_PARAMS_new 3 . | ||
| 278 | .Pp | ||
| 241 | .Fn d2i_RSA_PUBKEY | 279 | .Fn d2i_RSA_PUBKEY | 
| 242 | and | 280 | and | 
| 243 | .Fn i2d_RSA_PUBKEY | 281 | .Fn i2d_RSA_PUBKEY | 
| 244 | decode and encode an RSA public key using an ASN.1 | 282 | decode and encode an RSA public key using an ASN.1 | 
| 245 | .Vt SubjectPublicKeyInfo | 283 | .Vt SubjectPublicKeyInfo | 
| 246 | structure. | 284 | structure defined in RFC 5280 section 4.1 and documented in | 
| 285 | .Xr X509_PUBKEY_new 3 . | ||
| 247 | .Fn d2i_RSA_PUBKEY_bio , | 286 | .Fn d2i_RSA_PUBKEY_bio , | 
| 248 | .Fn d2i_RSA_PUBKEY_fp , | 287 | .Fn d2i_RSA_PUBKEY_fp , | 
| 249 | .Fn i2d_RSA_PUBKEY_bio , | 288 | .Fn i2d_RSA_PUBKEY_bio , | 
| @@ -272,9 +311,17 @@ object or | |||
| 272 | .Dv NULL | 311 | .Dv NULL | 
| 273 | if an error occurs. | 312 | if an error occurs. | 
| 274 | .Pp | 313 | .Pp | 
| 314 | .Fn d2i_RSA_PSS_PARAMS | ||
| 315 | returns a valid | ||
| 316 | .Vt RSA_PSS_PARAMS | ||
| 317 | object or | ||
| 318 | .Dv NULL | ||
| 319 | if an error occurs. | ||
| 320 | .Pp | ||
| 275 | .Fn i2d_RSAPublicKey , | 321 | .Fn i2d_RSAPublicKey , | 
| 276 | .Fn i2d_RSAPrivateKey , | 322 | .Fn i2d_RSAPrivateKey , | 
| 277 | .Fn i2d_Netscape_RSA , | 323 | .Fn i2d_Netscape_RSA , | 
| 324 | .Fn i2d_RSA_PSS_PARAMS , | ||
| 278 | and | 325 | and | 
| 279 | .Fn i2d_RSA_PUBKEY | 326 | .Fn i2d_RSA_PUBKEY | 
| 280 | return the number of bytes successfully encoded or a negative value | 327 | return the number of bytes successfully encoded or a negative value | 
| @@ -293,4 +340,11 @@ return 1 for success or 0 if an error occurs. | |||
| 293 | .Xr EVP_PKEY_set1_RSA 3 , | 340 | .Xr EVP_PKEY_set1_RSA 3 , | 
| 294 | .Xr PEM_write_RSAPrivateKey 3 , | 341 | .Xr PEM_write_RSAPrivateKey 3 , | 
| 295 | .Xr RSA_new 3 , | 342 | .Xr RSA_new 3 , | 
| 343 | .Xr RSA_PSS_PARAMS_new 3 , | ||
| 296 | .Xr X509_PUBKEY_new 3 | 344 | .Xr X509_PUBKEY_new 3 | 
| 345 | .Sh STANDARDS | ||
| 346 | RFC 8017: PKCS #1: RSA Cryptography Specifications | ||
| 347 | .Pp | ||
| 348 | RFC 5280: Internet X.509 Public Key Infrastructure Certificate and | ||
| 349 | Certificate Revocation List (CRL) Profile, | ||
| 350 | section 4.1: Basic Certificate Fields | ||
