summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-07-25 08:10:30 +0000
committertb <>2023-07-25 08:10:30 +0000
commit36ab05eb184cf16db99f028bed807bdae54b787d (patch)
tree4bedb1a5352210f07b7c9b8ac52e68609caa3d7c
parentb3f7fe3351523e30decc71fc0d9c918fb611bed7 (diff)
downloadopenbsd-36ab05eb184cf16db99f028bed807bdae54b787d.tar.gz
openbsd-36ab05eb184cf16db99f028bed807bdae54b787d.tar.bz2
openbsd-36ab05eb184cf16db99f028bed807bdae54b787d.zip
Use [a,b), not [a,b-1] in a comment
-rw-r--r--src/lib/libcrypto/ec/ecp_smpl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ecp_smpl.c b/src/lib/libcrypto/ec/ecp_smpl.c
index 9aa9af11f3..3388b99143 100644
--- a/src/lib/libcrypto/ec/ecp_smpl.c
+++ b/src/lib/libcrypto/ec/ecp_smpl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecp_smpl.c,v 1.46 2023/07/07 13:54:45 beck Exp $ */ 1/* $OpenBSD: ecp_smpl.c,v 1.47 2023/07/25 08:10:30 tb Exp $ */
2/* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> 2/* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de>
3 * for the OpenSSL project. 3 * for the OpenSSL project.
4 * Includes code written by Bodo Moeller for the OpenSSL project. 4 * Includes code written by Bodo Moeller for the OpenSSL project.
@@ -1273,7 +1273,7 @@ ec_GFp_simple_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx)
1273 if ((tmp = BN_CTX_get(ctx)) == NULL) 1273 if ((tmp = BN_CTX_get(ctx)) == NULL)
1274 goto err; 1274 goto err;
1275 1275
1276 /* Generate lambda in [1, group->field - 1] */ 1276 /* Generate lambda in [1, group->field). */
1277 if (!bn_rand_interval(lambda, BN_value_one(), &group->field)) 1277 if (!bn_rand_interval(lambda, BN_value_one(), &group->field))
1278 goto err; 1278 goto err;
1279 1279