diff options
author | tb <> | 2018-07-16 17:37:25 +0000 |
---|---|---|
committer | tb <> | 2018-07-16 17:37:25 +0000 |
commit | d2b47eac36fafcdba21f1ea86363d9e084ead619 (patch) | |
tree | 2603e76ced92bd6d7695679f33cda8d5712daa57 /src | |
parent | cb198f135c139c2e0ab679576187b5a4c9876304 (diff) | |
download | openbsd-d2b47eac36fafcdba21f1ea86363d9e084ead619.tar.gz openbsd-d2b47eac36fafcdba21f1ea86363d9e084ead619.tar.bz2 openbsd-d2b47eac36fafcdba21f1ea86363d9e084ead619.zip |
Document behavior change of EC_POINTs_mul() again.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/man/EC_POINT_add.3 | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/EC_POINT_add.3 b/src/lib/libcrypto/man/EC_POINT_add.3 index a9ad5563cc..7c3ecbb1ad 100644 --- a/src/lib/libcrypto/man/EC_POINT_add.3 +++ b/src/lib/libcrypto/man/EC_POINT_add.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: EC_POINT_add.3,v 1.10 2018/07/15 05:38:48 jsg Exp $ | 1 | .\" $OpenBSD: EC_POINT_add.3,v 1.11 2018/07/16 17:37:25 tb Exp $ |
2 | .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 | 2 | .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Matt Caswell <matt@openssl.org>. | 4 | .\" This file was written by Matt Caswell <matt@openssl.org>. |
@@ -48,7 +48,7 @@ | |||
48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
50 | .\" | 50 | .\" |
51 | .Dd $Mdocdate: July 15 2018 $ | 51 | .Dd $Mdocdate: July 16 2018 $ |
52 | .Dt EC_POINT_ADD 3 | 52 | .Dt EC_POINT_ADD 3 |
53 | .Os | 53 | .Os |
54 | .Sh NAME | 54 | .Sh NAME |
@@ -217,12 +217,30 @@ The value | |||
217 | .Fa n | 217 | .Fa n |
218 | may be | 218 | may be |
219 | .Dv NULL , | 219 | .Dv NULL , |
220 | in which case the result is just q * m. | 220 | in which case the result is just |
221 | .Pp | 221 | .Pp |
222 | .Dl q * m. | ||
223 | .Pp | ||
224 | .Fn EC_POINTs_mul | ||
225 | only supports the values 0 and 1 for | ||
226 | .Fa num . | ||
227 | If it is 1, then | ||
222 | .Fn EC_POINTs_mul | 228 | .Fn EC_POINTs_mul |
223 | calculates the value | 229 | calculates the value |
224 | .Pp | 230 | .Pp |
225 | .Dl generator * n + q[0] * m[0] + ... + q[num-1] * m[num-1] | 231 | .Dl generator * n + q[0] * m[0]. |
232 | .Pp | ||
233 | If | ||
234 | .Fa num | ||
235 | is 0 then | ||
236 | .Fa q | ||
237 | and | ||
238 | .Fa m | ||
239 | must be | ||
240 | .Dv NULL , | ||
241 | and the result is just | ||
242 | .Pp | ||
243 | .Dl generator * n . | ||
226 | .Pp | 244 | .Pp |
227 | As for | 245 | As for |
228 | .Fn EC_POINT_mul , | 246 | .Fn EC_POINT_mul , |