summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2025-01-01 09:31:05 +0000
committertb <>2025-01-01 09:31:05 +0000
commit4f4db522b10347e779e635569d9938a60931b0d1 (patch)
tree4fed77c6d1e78639a81a28aedf65de8023ee68aa
parent87f64b04ca0c0fd17094d40d13a3639dec3986fd (diff)
downloadopenbsd-4f4db522b10347e779e635569d9938a60931b0d1.tar.gz
openbsd-4f4db522b10347e779e635569d9938a60931b0d1.tar.bz2
openbsd-4f4db522b10347e779e635569d9938a60931b0d1.zip
Use the shorthand p rather than &group->p in one more place
-rw-r--r--src/lib/libcrypto/ec/ecp_methods.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ecp_methods.c b/src/lib/libcrypto/ec/ecp_methods.c
index 8f04a24e28..591d895c58 100644
--- a/src/lib/libcrypto/ec/ecp_methods.c
+++ b/src/lib/libcrypto/ec/ecp_methods.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecp_methods.c,v 1.14 2024/12/12 10:00:15 tb Exp $ */ 1/* $OpenBSD: ecp_methods.c,v 1.15 2025/01/01 09:31:05 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.
@@ -500,7 +500,7 @@ ec_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *point,
500 ECerror(EC_R_INVALID_COMPRESSION_BIT); 500 ECerror(EC_R_INVALID_COMPRESSION_BIT);
501 goto err; 501 goto err;
502 } 502 }
503 if (!BN_usub(y, &group->p, y)) 503 if (!BN_usub(y, p, y))
504 goto err; 504 goto err;
505 505
506 if (y_bit != BN_is_odd(y)) { 506 if (y_bit != BN_is_odd(y)) {