From 564b3a21a369968f47b3ff19408fbd270a6ac8f2 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Sun, 18 Mar 2018 13:49:08 +0000 Subject: 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. --- src/lib/libcrypto/man/ECDSA_SIG_new.3 | 43 +++++++++++++++++++++++++++++++---- 1 file changed, 39 insertions(+), 4 deletions(-) (limited to 'src/lib') 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 @@ -.\" $OpenBSD: ECDSA_SIG_new.3,v 1.8 2017/01/06 20:35:23 schwarze Exp $ -.\" OpenSSL e6390aca Jul 21 10:06:03 2015 -0400 +.\" $OpenBSD: ECDSA_SIG_new.3,v 1.9 2018/03/18 13:49:08 schwarze Exp $ +.\" full merge up to: OpenSSL e9b77246 Jan 20 19:58:49 2017 +0100 .\" .\" This file was written by Nils Larsch . -.\" Copyright (c) 2004, 2005, 2012, 2013 The OpenSSL Project. +.\" Copyright (c) 2004, 2005, 2013, 2016 The OpenSSL Project. .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -49,12 +49,14 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: January 6 2017 $ +.Dd $Mdocdate: March 18 2018 $ .Dt ECDSA_SIG_NEW 3 .Os .Sh NAME .Nm ECDSA_SIG_new , .Nm ECDSA_SIG_free , +.Nm ECDSA_SIG_get0 , +.Nm ECDSA_SIG_set0 , .Nm i2d_ECDSA_SIG , .Nm d2i_ECDSA_SIG , .Nm ECDSA_size , @@ -80,6 +82,18 @@ .Fo ECDSA_SIG_free .Fa "ECDSA_SIG *sig" .Fc +.Ft void +.Fo ECDSA_SIG_get0 +.Fa "const ECDSA_SIG *sig" +.Fa "const BIGNUM **r" +.Fa "const BIGNUM **s" +.Fc +.Ft int +.Fo ECDSA_SIG_set0 +.Fa "ECDSA_SIG *sig" +.Fa "BIGNUM *r" +.Fa "BIGNUM *s" +.Fc .Ft int .Fo i2d_ECDSA_SIG .Fa "const ECDSA_SIG *sig" @@ -210,6 +224,26 @@ frees the structure .Fa sig . .Pp +.Fn ECDSA_SIG_get0 +retrieves internal pointers the +.Fa r +and +.Fa s +values contained in +.Fa sig . +.Pp +.Fn ECDSA_SIG_set0 +sets the +.Fa r +and +.Fa s +values in +.Fa sig . +Calling this function transfers the memory management of the values to +.Fa sig . +Therefore, the values that have been passed in +should not be freed by the caller. +.Pp .Fn i2d_ECDSA_SIG creates the DER encoding of the ECDSA signature .Fa sig @@ -345,6 +379,7 @@ using the public key .Fn ECDSA_size returns the maximum length signature or 0 on error. .Pp +.Fn ECDSA_SIG_set0 , .Fn ECDSA_sign , .Fn ECDSA_sign_ex , and -- cgit v1.2.3-55-g6feb