mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-25 22:53:41 +08:00
Revert "Merge branch 'master' of https://github.com/guanzhi/GmSSL"
This reverts commit7897604408, reversing changes made to6c122e31a6.
This commit is contained in:
0
crypto/sm9/sm9_asn1.c
Normal file → Executable file
0
crypto/sm9/sm9_asn1.c
Normal file → Executable file
0
crypto/sm9/sm9_enc.c
Normal file → Executable file
0
crypto/sm9/sm9_enc.c
Normal file → Executable file
0
crypto/sm9/sm9_err.c
Normal file → Executable file
0
crypto/sm9/sm9_err.c
Normal file → Executable file
0
crypto/sm9/sm9_exch.c
Normal file → Executable file
0
crypto/sm9/sm9_exch.c
Normal file → Executable file
3
crypto/sm9/sm9_keygen.c
Normal file → Executable file
3
crypto/sm9/sm9_keygen.c
Normal file → Executable file
@@ -304,8 +304,7 @@ SM9_KEY *SM9_MASTER_KEY_extract_key(SM9_MASTER_KEY *master,
|
||||
sk = NULL;
|
||||
|
||||
end:
|
||||
SM9PrivateKey_free(sk);
|
||||
EC_GROUP_clear_free(group);
|
||||
EC_GROUP_free(group);
|
||||
if (ctx) {
|
||||
BN_CTX_end(ctx);
|
||||
}
|
||||
|
||||
0
crypto/sm9/sm9_lib.c
Normal file → Executable file
0
crypto/sm9/sm9_lib.c
Normal file → Executable file
0
crypto/sm9/sm9_params.c
Normal file → Executable file
0
crypto/sm9/sm9_params.c
Normal file → Executable file
0
crypto/sm9/sm9_pmeth.c
Normal file → Executable file
0
crypto/sm9/sm9_pmeth.c
Normal file → Executable file
@@ -2659,7 +2659,6 @@ int rate_pairing(fp12_t r, const point_t *Q, const EC_POINT *P, BN_CTX *ctx)
|
||||
|
||||
BN_free(xP);
|
||||
BN_free(yP);
|
||||
EC_GROUP_clear_free(group);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
0
crypto/sm9/sm9_setup.c
Normal file → Executable file
0
crypto/sm9/sm9_setup.c
Normal file → Executable file
6
crypto/sm9/sm9_sign.c
Normal file → Executable file
6
crypto/sm9/sm9_sign.c
Normal file → Executable file
@@ -198,8 +198,6 @@ end:
|
||||
BN_free(r);
|
||||
point_cleanup(&Ppubs);
|
||||
fp12_cleanup(w);
|
||||
BN_CTX_end(bn_ctx);
|
||||
BN_CTX_free(bn_ctx);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -357,7 +355,9 @@ end:
|
||||
point_cleanup(&P);
|
||||
fp12_cleanup(w);
|
||||
fp12_cleanup(u);
|
||||
BN_CTX_end(bn_ctx);
|
||||
if (bn_ctx) {
|
||||
BN_CTX_end(bn_ctx);
|
||||
}
|
||||
BN_CTX_free(bn_ctx);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user