Merge pull request #907 from daviyang35/master

Fix sm9test_exch SKA verify error
This commit is contained in:
Simon
2019-12-31 09:46:28 +08:00
committed by GitHub

View File

@@ -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;
}