diff options
author | tb <> | 2024-10-23 15:06:46 +0000 |
---|---|---|
committer | tb <> | 2024-10-23 15:06:46 +0000 |
commit | 05c228470598f93396d464b5933530fafc42823d (patch) | |
tree | 87a870fcc9cf78c4c9d858e5e277cbc114331108 /src | |
parent | 2437a6e1956c7e15bcfc92c2d8e65619bbe8864d (diff) | |
download | openbsd-05c228470598f93396d464b5933530fafc42823d.tar.gz openbsd-05c228470598f93396d464b5933530fafc42823d.tar.bz2 openbsd-05c228470598f93396d464b5933530fafc42823d.zip |
ec_point_conversion: cosmetics
Diffstat (limited to 'src')
-rw-r--r-- | src/regress/lib/libcrypto/ec/ec_point_conversion.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regress/lib/libcrypto/ec/ec_point_conversion.c b/src/regress/lib/libcrypto/ec/ec_point_conversion.c index e4d390ec0b..a0b849d161 100644 --- a/src/regress/lib/libcrypto/ec/ec_point_conversion.c +++ b/src/regress/lib/libcrypto/ec/ec_point_conversion.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_point_conversion.c,v 1.16 2024/10/23 14:10:03 tb Exp $ */ | 1 | /* $OpenBSD: ec_point_conversion.c,v 1.17 2024/10/23 15:06:46 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2021 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2021 Theo Buehler <tb@openbsd.org> |
4 | * Copyright (c) 2021 Joel Sing <jsing@openbsd.org> | 4 | * Copyright (c) 2021 Joel Sing <jsing@openbsd.org> |
@@ -510,7 +510,7 @@ check_point_at_infinity(const EC_GROUP *group, const EC_POINT *point, | |||
510 | 510 | ||
511 | ret = EC_POINT_point2oct(group, point, form, buf, sizeof(buf), NULL); | 511 | ret = EC_POINT_point2oct(group, point, form, buf, sizeof(buf), NULL); |
512 | if (ret != 0) { | 512 | if (ret != 0) { |
513 | fprintf(stderr, "FAIL: %s: expected encoding with form 0x%02x" | 513 | fprintf(stderr, "FAIL: %s: expected encoding with form 0x%02x " |
514 | "to fail, got %zu\n", test->description, form, ret); | 514 | "to fail, got %zu\n", test->description, form, ret); |
515 | failed |= 1; | 515 | failed |= 1; |
516 | } | 516 | } |
@@ -559,9 +559,9 @@ point_conversion_form_y_bit(const struct point_conversion *test) | |||
559 | failed |= 1; | 559 | failed |= 1; |
560 | } | 560 | } |
561 | 561 | ||
562 | if (test->valid && test->point_at_infinity) | 562 | if (test->valid && test->point_at_infinity) { |
563 | failed |= check_point_at_infinity(group, point, test); | 563 | failed |= check_point_at_infinity(group, point, test); |
564 | else if (test->valid) { | 564 | } else if (test->valid) { |
565 | uint8_t buf[256]; | 565 | uint8_t buf[256]; |
566 | uint8_t form = test->octets[0] & 0x06; | 566 | uint8_t form = test->octets[0] & 0x06; |
567 | size_t len; | 567 | size_t len; |