From 84acb277e91737470dd9f1269cfb87d8b71480a7 Mon Sep 17 00:00:00 2001 From: luohua-xyz <54464078+luohua-xyz@users.noreply.github.com> Date: Fri, 27 Sep 2019 15:48:00 +0800 Subject: [PATCH] Compare SA and SB, instead of SA and itself --- test/sm9test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sm9test.c b/test/sm9test.c index 599f0f22..2ff3d8df 100644 --- a/test/sm9test.c +++ b/test/sm9test.c @@ -356,7 +356,7 @@ static int sm9test_exch(const char *idA, const char *idB) goto end; } - if (memcmp(SKA, SKA, sizeof(SKA)) != 0 || memcmp(SA, S2, sizeof(SA)) != 0) { + if (memcmp(SKA, SKB, sizeof(SKA)) != 0 || memcmp(SA, S2, sizeof(SA)) != 0) { goto end; }