diff options
| author | schwarze <> | 2018-03-18 13:49:08 +0000 |
|---|---|---|
| committer | schwarze <> | 2018-03-18 13:49:08 +0000 |
| commit | ed245d2c282aafe5e3349f16ecc45562fa1c61cf (patch) | |
| tree | e7bb292b5263f1e45a097f1964cfb693ae59c34d /src | |
| parent | a047cbca9893d86e3147665e867abed2f5c74092 (diff) | |
| download | openbsd-ed245d2c282aafe5e3349f16ecc45562fa1c61cf.tar.gz openbsd-ed245d2c282aafe5e3349f16ecc45562fa1c61cf.tar.bz2 openbsd-ed245d2c282aafe5e3349f16ecc45562fa1c61cf.zip | |
In ecdsa.h rev. 1.5 2018/03/17 15:24:44, tb@ provided
ECDSA_SIG_get0(3) and ECDSA_SIG_set0(3).
Merge the documentation from OpenSSL.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/ECDSA_SIG_new.3 | 43 |
1 files changed, 39 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/ECDSA_SIG_new.3 b/src/lib/libcrypto/man/ECDSA_SIG_new.3 index da3d3fe0d1..a833776606 100644 --- a/src/lib/libcrypto/man/ECDSA_SIG_new.3 +++ b/src/lib/libcrypto/man/ECDSA_SIG_new.3 | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | .\" $OpenBSD: ECDSA_SIG_new.3,v 1.8 2017/01/06 20:35:23 schwarze Exp $ | 1 | .\" $OpenBSD: ECDSA_SIG_new.3,v 1.9 2018/03/18 13:49:08 schwarze Exp $ |
| 2 | .\" OpenSSL e6390aca Jul 21 10:06:03 2015 -0400 | 2 | .\" full merge up to: OpenSSL e9b77246 Jan 20 19:58:49 2017 +0100 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Nils Larsch <nils@openssl.org>. | 4 | .\" This file was written by Nils Larsch <nils@openssl.org>. |
| 5 | .\" Copyright (c) 2004, 2005, 2012, 2013 The OpenSSL Project. | 5 | .\" Copyright (c) 2004, 2005, 2013, 2016 The OpenSSL Project. |
| 6 | .\" All rights reserved. | 6 | .\" All rights reserved. |
| 7 | .\" | 7 | .\" |
| 8 | .\" Redistribution and use in source and binary forms, with or without | 8 | .\" Redistribution and use in source and binary forms, with or without |
| @@ -49,12 +49,14 @@ | |||
| 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 51 | .\" | 51 | .\" |
| 52 | .Dd $Mdocdate: January 6 2017 $ | 52 | .Dd $Mdocdate: March 18 2018 $ |
| 53 | .Dt ECDSA_SIG_NEW 3 | 53 | .Dt ECDSA_SIG_NEW 3 |
| 54 | .Os | 54 | .Os |
| 55 | .Sh NAME | 55 | .Sh NAME |
| 56 | .Nm ECDSA_SIG_new , | 56 | .Nm ECDSA_SIG_new , |
| 57 | .Nm ECDSA_SIG_free , | 57 | .Nm ECDSA_SIG_free , |
| 58 | .Nm ECDSA_SIG_get0 , | ||
| 59 | .Nm ECDSA_SIG_set0 , | ||
| 58 | .Nm i2d_ECDSA_SIG , | 60 | .Nm i2d_ECDSA_SIG , |
| 59 | .Nm d2i_ECDSA_SIG , | 61 | .Nm d2i_ECDSA_SIG , |
| 60 | .Nm ECDSA_size , | 62 | .Nm ECDSA_size , |
| @@ -80,6 +82,18 @@ | |||
| 80 | .Fo ECDSA_SIG_free | 82 | .Fo ECDSA_SIG_free |
| 81 | .Fa "ECDSA_SIG *sig" | 83 | .Fa "ECDSA_SIG *sig" |
| 82 | .Fc | 84 | .Fc |
| 85 | .Ft void | ||
| 86 | .Fo ECDSA_SIG_get0 | ||
| 87 | .Fa "const ECDSA_SIG *sig" | ||
| 88 | .Fa "const BIGNUM **r" | ||
| 89 | .Fa "const BIGNUM **s" | ||
| 90 | .Fc | ||
| 91 | .Ft int | ||
| 92 | .Fo ECDSA_SIG_set0 | ||
| 93 | .Fa "ECDSA_SIG *sig" | ||
| 94 | .Fa "BIGNUM *r" | ||
| 95 | .Fa "BIGNUM *s" | ||
| 96 | .Fc | ||
| 83 | .Ft int | 97 | .Ft int |
| 84 | .Fo i2d_ECDSA_SIG | 98 | .Fo i2d_ECDSA_SIG |
| 85 | .Fa "const ECDSA_SIG *sig" | 99 | .Fa "const ECDSA_SIG *sig" |
| @@ -210,6 +224,26 @@ frees the | |||
| 210 | structure | 224 | structure |
| 211 | .Fa sig . | 225 | .Fa sig . |
| 212 | .Pp | 226 | .Pp |
| 227 | .Fn ECDSA_SIG_get0 | ||
| 228 | retrieves internal pointers the | ||
| 229 | .Fa r | ||
| 230 | and | ||
| 231 | .Fa s | ||
| 232 | values contained in | ||
| 233 | .Fa sig . | ||
| 234 | .Pp | ||
| 235 | .Fn ECDSA_SIG_set0 | ||
| 236 | sets the | ||
| 237 | .Fa r | ||
| 238 | and | ||
| 239 | .Fa s | ||
| 240 | values in | ||
| 241 | .Fa sig . | ||
| 242 | Calling this function transfers the memory management of the values to | ||
| 243 | .Fa sig . | ||
| 244 | Therefore, the values that have been passed in | ||
| 245 | should not be freed by the caller. | ||
| 246 | .Pp | ||
| 213 | .Fn i2d_ECDSA_SIG | 247 | .Fn i2d_ECDSA_SIG |
| 214 | creates the DER encoding of the ECDSA signature | 248 | creates the DER encoding of the ECDSA signature |
| 215 | .Fa sig | 249 | .Fa sig |
| @@ -345,6 +379,7 @@ using the public key | |||
| 345 | .Fn ECDSA_size | 379 | .Fn ECDSA_size |
| 346 | returns the maximum length signature or 0 on error. | 380 | returns the maximum length signature or 0 on error. |
| 347 | .Pp | 381 | .Pp |
| 382 | .Fn ECDSA_SIG_set0 , | ||
| 348 | .Fn ECDSA_sign , | 383 | .Fn ECDSA_sign , |
| 349 | .Fn ECDSA_sign_ex , | 384 | .Fn ECDSA_sign_ex , |
| 350 | and | 385 | and |
