diff options
author | tb <> | 2023-03-06 13:34:53 +0000 |
---|---|---|
committer | tb <> | 2023-03-06 13:34:53 +0000 |
commit | 48e828ea26ee91710242131cd75cd9d1d20b773c (patch) | |
tree | db7651fd6be43c0a733ff3d802f8c8a2fc08bceb | |
parent | 5baf747959849f87460fd5a4da03de36db526948 (diff) | |
download | openbsd-48e828ea26ee91710242131cd75cd9d1d20b773c.tar.gz openbsd-48e828ea26ee91710242131cd75cd9d1d20b773c.tar.bz2 openbsd-48e828ea26ee91710242131cd75cd9d1d20b773c.zip |
Document ECDSA_SIG_get0_{r,s}()
-rw-r--r-- | src/lib/libcrypto/man/ECDSA_SIG_new.3 | 37 |
1 files changed, 35 insertions, 2 deletions
diff --git a/src/lib/libcrypto/man/ECDSA_SIG_new.3 b/src/lib/libcrypto/man/ECDSA_SIG_new.3 index 72802155b0..88401732d9 100644 --- a/src/lib/libcrypto/man/ECDSA_SIG_new.3 +++ b/src/lib/libcrypto/man/ECDSA_SIG_new.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: ECDSA_SIG_new.3,v 1.15 2019/08/25 14:11:41 schwarze Exp $ | 1 | .\" $OpenBSD: ECDSA_SIG_new.3,v 1.16 2023/03/06 13:34:53 tb Exp $ |
2 | .\" full merge up to: OpenSSL e9b77246 Jan 20 19:58:49 2017 +0100 | 2 | .\" full merge up to: OpenSSL e9b77246 Jan 20 19:58:49 2017 +0100 |
3 | .\" selective merge up to: OpenSSL da4ea0cf Aug 5 16:13:24 2019 +0100 | 3 | .\" selective merge up to: OpenSSL da4ea0cf Aug 5 16:13:24 2019 +0100 |
4 | .\" | 4 | .\" |
@@ -50,13 +50,15 @@ | |||
50 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 50 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
52 | .\" | 52 | .\" |
53 | .Dd $Mdocdate: August 25 2019 $ | 53 | .Dd $Mdocdate: March 6 2023 $ |
54 | .Dt ECDSA_SIG_NEW 3 | 54 | .Dt ECDSA_SIG_NEW 3 |
55 | .Os | 55 | .Os |
56 | .Sh NAME | 56 | .Sh NAME |
57 | .Nm ECDSA_SIG_new , | 57 | .Nm ECDSA_SIG_new , |
58 | .Nm ECDSA_SIG_free , | 58 | .Nm ECDSA_SIG_free , |
59 | .Nm ECDSA_SIG_get0 , | 59 | .Nm ECDSA_SIG_get0 , |
60 | .Nm ECDSA_SIG_get0_r , | ||
61 | .Nm ECDSA_SIG_get0_s , | ||
60 | .Nm ECDSA_SIG_set0 , | 62 | .Nm ECDSA_SIG_set0 , |
61 | .Nm i2d_ECDSA_SIG , | 63 | .Nm i2d_ECDSA_SIG , |
62 | .Nm d2i_ECDSA_SIG , | 64 | .Nm d2i_ECDSA_SIG , |
@@ -89,6 +91,14 @@ | |||
89 | .Fa "const BIGNUM **r" | 91 | .Fa "const BIGNUM **r" |
90 | .Fa "const BIGNUM **s" | 92 | .Fa "const BIGNUM **s" |
91 | .Fc | 93 | .Fc |
94 | .Ft "const BIGNUM *" | ||
95 | .Fo ECDSA_SIG_get0_r | ||
96 | .Fa "const ECDSA_SIG *sig" | ||
97 | .Fc | ||
98 | .Ft "const BIGNUM *" | ||
99 | .Fo ECDSA_SIG_get0_s | ||
100 | .Fa "const ECDSA_SIG *sig" | ||
101 | .Fc | ||
92 | .Ft int | 102 | .Ft int |
93 | .Fo ECDSA_SIG_set0 | 103 | .Fo ECDSA_SIG_set0 |
94 | .Fa "ECDSA_SIG *sig" | 104 | .Fa "ECDSA_SIG *sig" |
@@ -232,6 +242,15 @@ and | |||
232 | .Fa s | 242 | .Fa s |
233 | values contained in | 243 | values contained in |
234 | .Fa sig . | 244 | .Fa sig . |
245 | The values | ||
246 | .Fa r | ||
247 | and | ||
248 | .Fa s | ||
249 | can also be retrieved separately by the corresponding function | ||
250 | .Fn ECDSA_SIG_get0_r | ||
251 | and | ||
252 | .Fn ECDSA_SIG_get0_s , | ||
253 | respectively. | ||
235 | .Pp | 254 | .Pp |
236 | .Fn ECDSA_SIG_set0 | 255 | .Fn ECDSA_SIG_set0 |
237 | sets the | 256 | sets the |
@@ -390,6 +409,15 @@ if an error occurs. | |||
390 | .Fn ECDSA_size | 409 | .Fn ECDSA_size |
391 | returns the maximum length signature or 0 on error. | 410 | returns the maximum length signature or 0 on error. |
392 | .Pp | 411 | .Pp |
412 | .Fn ECDSA_SIG_get0_r | ||
413 | and | ||
414 | .Fn ECDSA_SIG_get0_s | ||
415 | return a pointer owned by the | ||
416 | .Vt ECDSA_SIG | ||
417 | object if it has been set or | ||
418 | .Dv NULL | ||
419 | otherwise. | ||
420 | .Pp | ||
393 | .Fn ECDSA_SIG_set0 , | 421 | .Fn ECDSA_SIG_set0 , |
394 | .Fn ECDSA_sign , | 422 | .Fn ECDSA_sign , |
395 | .Fn ECDSA_sign_ex , | 423 | .Fn ECDSA_sign_ex , |
@@ -521,6 +549,11 @@ and | |||
521 | .Fn ECDSA_SIG_set0 | 549 | .Fn ECDSA_SIG_set0 |
522 | first appeared in OpenSSL 1.1.0 and have been available since | 550 | first appeared in OpenSSL 1.1.0 and have been available since |
523 | .Ox 6.3 . | 551 | .Ox 6.3 . |
552 | .Fn ECDSA_SIG_get0_r | ||
553 | and | ||
554 | .Fn ECDSA_SIG_get0_s | ||
555 | first appeared in OpenSSL 1.1.0 and have been available since | ||
556 | .Ox 7.1 . | ||
524 | .Sh AUTHORS | 557 | .Sh AUTHORS |
525 | .An Nils Larsch | 558 | .An Nils Larsch |
526 | for the OpenSSL project. | 559 | for the OpenSSL project. |