summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2025-01-22 15:23:25 +0000
committertb <>2025-01-22 15:23:25 +0000
commit421c4a39a1102796689ea3714aea4db32ea17011 (patch)
treea50cc2ec6f88b09076269c4a3d2731654df875f5 /src
parent0a79042490ca8b946a5dddbcb64fe144470ef080 (diff)
downloadopenbsd-421c4a39a1102796689ea3714aea4db32ea17011.tar.gz
openbsd-421c4a39a1102796689ea3714aea4db32ea17011.tar.bz2
openbsd-421c4a39a1102796689ea3714aea4db32ea17011.zip
ectest: fix misleading indentation
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/ec/ectest.c12
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))