From: tb Date: Mon, 16 Jul 2018 17:37:25 +0000 (+0000) Subject: Document behavior change of EC_POINTs_mul() again. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=387919d78d41f1ddecf6d61d77b721cf95816612;p=openbsd Document behavior change of EC_POINTs_mul() again. --- diff --git a/lib/libcrypto/man/EC_POINT_add.3 b/lib/libcrypto/man/EC_POINT_add.3 index a9ad5563cc9..7c3ecbb1ad3 100644 --- a/lib/libcrypto/man/EC_POINT_add.3 +++ b/lib/libcrypto/man/EC_POINT_add.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: EC_POINT_add.3,v 1.10 2018/07/15 05:38:48 jsg Exp $ +.\" $OpenBSD: EC_POINT_add.3,v 1.11 2018/07/16 17:37:25 tb Exp $ .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 .\" .\" This file was written by Matt Caswell . @@ -48,7 +48,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: July 15 2018 $ +.Dd $Mdocdate: July 16 2018 $ .Dt EC_POINT_ADD 3 .Os .Sh NAME @@ -217,12 +217,30 @@ The value .Fa n may be .Dv NULL , -in which case the result is just q * m. +in which case the result is just .Pp +.Dl q * m. +.Pp +.Fn EC_POINTs_mul +only supports the values 0 and 1 for +.Fa num . +If it is 1, then .Fn EC_POINTs_mul calculates the value .Pp -.Dl generator * n + q[0] * m[0] + ... + q[num-1] * m[num-1] +.Dl generator * n + q[0] * m[0]. +.Pp +If +.Fa num +is 0 then +.Fa q +and +.Fa m +must be +.Dv NULL , +and the result is just +.Pp +.Dl generator * n . .Pp As for .Fn EC_POINT_mul ,