Fix export symbol bug in MSVC

This commit is contained in:
Zhi Guan
2022-12-24 10:50:44 +08:00
parent fac880d47d
commit 0eb4bd9c1d
7 changed files with 53 additions and 32 deletions

View File

@@ -22,6 +22,9 @@
#include <gmssl/x509_alg.h>
extern const SM2_BN SM2_N;
int sm2_key_generate(SM2_KEY *key)
{
SM2_BN x;

View File

@@ -19,6 +19,10 @@
#include <gmssl/error.h>
#include <gmssl/endian.h>
extern const SM2_BN SM2_N;
extern const SM2_BN SM2_ONE;
#define print_bn(str,a) sm2_bn_print(stderr,0,4,str,a)
int sm2_do_sign_ex(const SM2_KEY *key, int fixed_outlen, const uint8_t dgst[32], SM2_SIGNATURE *sig)

View File

@@ -18,6 +18,9 @@
#include <gmssl/asn1.h>
#include <gmssl/error.h>
extern const SM9_POINT *SM9_P1;
extern const SM9_TWIST_POINT *SM9_P2;
int sm9_signature_to_der(const SM9_SIGNATURE *sig, uint8_t **out, size_t *outlen)
{