spped-of-sign-and-verify

This commit is contained in:
Gorachya
2019-05-06 20:05:21 -07:00
parent e963f6fea1
commit 4d55e7b963
12 changed files with 258 additions and 6 deletions

3
crypto/sm9/sm9_keygen.c Executable file → Normal file
View File

@@ -304,7 +304,8 @@ SM9_KEY *SM9_MASTER_KEY_extract_key(SM9_MASTER_KEY *master,
sk = NULL;
end:
EC_GROUP_free(group);
SM9PrivateKey_free(sk);
EC_GROUP_clear_free(group);
if (ctx) {
BN_CTX_end(ctx);
}