diff options
author | 2018-07-16 17:37:25 +0000 | |
---|---|---|
committer | 2018-07-16 17:37:25 +0000 | |
commit | 387919d78d41f1ddecf6d61d77b721cf95816612 (patch) | |
tree | d8fd66488c4ca08b95d322b4aa87cbe659fc1e87 | |
parent | Recommit Billy Brumley's ECC constant time patch with a fix for sparc64 (diff) | |
download | wireguard-openbsd-387919d78d41f1ddecf6d61d77b721cf95816612.tar.xz wireguard-openbsd-387919d78d41f1ddecf6d61d77b721cf95816612.zip |
Document behavior change of EC_POINTs_mul() again.
-rw-r--r-- | lib/libcrypto/man/EC_POINT_add.3 | 26 |
1 files changed, 22 insertions, 4 deletions
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 <matt@openssl.org>. @@ -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 , |