diff options
| author | tb <> | 2025-01-22 15:23:25 +0000 |
|---|---|---|
| committer | tb <> | 2025-01-22 15:23:25 +0000 |
| commit | be81889e4c24184c1ddbc2f94925debbb9be1c0e (patch) | |
| tree | a50cc2ec6f88b09076269c4a3d2731654df875f5 /src/regress/lib/libcrypto/ec/ectest.c | |
| parent | cf4932e0a27405a30b4378196ccfcbdcaab01d0b (diff) | |
| download | openbsd-be81889e4c24184c1ddbc2f94925debbb9be1c0e.tar.gz openbsd-be81889e4c24184c1ddbc2f94925debbb9be1c0e.tar.bz2 openbsd-be81889e4c24184c1ddbc2f94925debbb9be1c0e.zip | |
ectest: fix misleading indentation
Diffstat (limited to 'src/regress/lib/libcrypto/ec/ectest.c')
| -rw-r--r-- | src/regress/lib/libcrypto/ec/ectest.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/regress/lib/libcrypto/ec/ectest.c b/src/regress/lib/libcrypto/ec/ectest.c index b7207607a4..97ff0bb839 100644 --- a/src/regress/lib/libcrypto/ec/ectest.c +++ b/src/regress/lib/libcrypto/ec/ectest.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ectest.c,v 1.32 2025/01/22 15:20:47 tb Exp $ */ | 1 | /* $OpenBSD: ectest.c,v 1.33 2025/01/22 15:23:25 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 | */ |
| @@ -291,9 +291,10 @@ prime_field_tests(void) | |||
| 291 | if (0 != EC_POINT_cmp(group, P, Q, ctx)) | 291 | if (0 != EC_POINT_cmp(group, P, Q, ctx)) |
| 292 | ABORT; | 292 | ABORT; |
| 293 | fprintf(stdout, "Generator as octet string, compressed form:\n "); | 293 | fprintf(stdout, "Generator as octet string, compressed form:\n "); |
| 294 | for (i = 0; i < len; i++) fprintf(stdout, "%02X", buf[i]); | 294 | for (i = 0; i < len; i++) |
| 295 | fprintf(stdout, "%02X", buf[i]); | ||
| 295 | 296 | ||
| 296 | len = EC_POINT_point2oct(group, Q, POINT_CONVERSION_UNCOMPRESSED, buf, sizeof buf, ctx); | 297 | len = EC_POINT_point2oct(group, Q, POINT_CONVERSION_UNCOMPRESSED, buf, sizeof buf, ctx); |
| 297 | if (len == 0) | 298 | if (len == 0) |
| 298 | ABORT; | 299 | ABORT; |
| 299 | if (!EC_POINT_oct2point(group, P, buf, len, ctx)) | 300 | if (!EC_POINT_oct2point(group, P, buf, len, ctx)) |
| @@ -301,9 +302,10 @@ prime_field_tests(void) | |||
| 301 | if (0 != EC_POINT_cmp(group, P, Q, ctx)) | 302 | if (0 != EC_POINT_cmp(group, P, Q, ctx)) |
| 302 | ABORT; | 303 | ABORT; |
| 303 | fprintf(stdout, "\nGenerator as octet string, uncompressed form:\n "); | 304 | fprintf(stdout, "\nGenerator as octet string, uncompressed form:\n "); |
| 304 | for (i = 0; i < len; i++) fprintf(stdout, "%02X", buf[i]); | 305 | for (i = 0; i < len; i++) |
| 306 | fprintf(stdout, "%02X", buf[i]); | ||
| 305 | 307 | ||
| 306 | len = EC_POINT_point2oct(group, Q, POINT_CONVERSION_HYBRID, buf, sizeof buf, ctx); | 308 | len = EC_POINT_point2oct(group, Q, POINT_CONVERSION_HYBRID, buf, sizeof buf, ctx); |
| 307 | if (len == 0) | 309 | if (len == 0) |
| 308 | ABORT; | 310 | ABORT; |
| 309 | if (!EC_POINT_oct2point(group, P, buf, len, ctx)) | 311 | if (!EC_POINT_oct2point(group, P, buf, len, ctx)) |
