mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-14 12:26:18 +08:00
Fix export symbol bug in MSVC
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user