diff options
author | tb <> | 2024-10-30 18:18:35 +0000 |
---|---|---|
committer | tb <> | 2024-10-30 18:18:35 +0000 |
commit | 49068deeca118969162ea5680e55dfd6aa3d1f00 (patch) | |
tree | 4843b18a30702054ca480724550d45ada10ccb37 | |
parent | f953655e6861bda2cfd07fa49af0ecd20b4507c2 (diff) | |
download | openbsd-49068deeca118969162ea5680e55dfd6aa3d1f00.tar.gz openbsd-49068deeca118969162ea5680e55dfd6aa3d1f00.tar.bz2 openbsd-49068deeca118969162ea5680e55dfd6aa3d1f00.zip |
Replace hardcoded 1U with EC_OCT_YBIT
-rw-r--r-- | src/lib/libcrypto/ec/ec_convert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ec_convert.c b/src/lib/libcrypto/ec/ec_convert.c index 123cf90ef9..f6ee1f9702 100644 --- a/src/lib/libcrypto/ec/ec_convert.c +++ b/src/lib/libcrypto/ec/ec_convert.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_convert.c,v 1.2 2024/10/30 18:16:34 tb Exp $ */ | 1 | /* $OpenBSD: ec_convert.c,v 1.3 2024/10/30 18:18:35 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -417,7 +417,7 @@ ec_point_from_octets(const EC_GROUP *group, const unsigned char *buf, size_t buf | |||
417 | goto err; | 417 | goto err; |
418 | 418 | ||
419 | if (out_form != NULL) | 419 | if (out_form != NULL) |
420 | *out_form = buf[0] & ~1U; /* XXX - EC_OCT_YBIT */ | 420 | *out_form = buf[0] & ~EC_OCT_YBIT; |
421 | 421 | ||
422 | *out_point = point; | 422 | *out_point = point; |
423 | point = NULL; | 423 | point = NULL; |