summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2021-04-06 15:00:20 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2021-04-06 15:00:20 +0000
commitca7d56da9e789f7630f4b13938e58b315b1e471b (patch)
treead9d1f1df29af1bffd3a30667dc1dfc12e95af80 /regress
parentdc4dab43dede3ef85ef202641b8132aa2c7cc79e (diff)
minor style tweaks
Diffstat (limited to 'regress')
-rw-r--r--regress/lib/libcrypto/sm3/sm3test.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/regress/lib/libcrypto/sm3/sm3test.c b/regress/lib/libcrypto/sm3/sm3test.c
index 66113728486..f02ce3a6670 100644
--- a/regress/lib/libcrypto/sm3/sm3test.c
+++ b/regress/lib/libcrypto/sm3/sm3test.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sm3test.c,v 1.2 2018/11/12 15:55:59 tb Exp $ */
+/* $OpenBSD: sm3test.c,v 1.3 2021/04/06 15:00:19 tb Exp $ */
/*
* Copyright (c) 2018 Ribose Inc
*
@@ -68,12 +68,13 @@ main(int argc, char *argv[])
{
EVP_MD_CTX *ctx;
uint8_t digest[32];
- int numerrors = 0, i;
-
+ int i;
+ int numerrors = 0;
+
if ((ctx = EVP_MD_CTX_new()) == NULL)
err(1, NULL);
-
- for (i = 0; i != SM3_TESTS; ++i) {
+
+ for (i = 0; i < SM3_TESTS; i++) {
if (!EVP_DigestInit(ctx, EVP_sm3()))
errx(1, "EVP_DigestInit() failed");
if (!EVP_DigestUpdate(ctx, sm3_input[i], strlen(sm3_input[i])))