Fix export symbol on Windows

This commit is contained in:
Zhi Guan
2026-05-28 08:57:11 +08:00
parent 2aa476004b
commit a1257f5347
2 changed files with 9 additions and 5 deletions

View File

@@ -82,7 +82,8 @@ typedef struct {
secp256r1_t Z;
} SECP256R1_POINT;
extern const SECP256R1_POINT SECP256R1_POINT_G;
const SECP256R1_POINT *secp256r1_generator(void);
#define SECP256R1_POINT_G (*secp256r1_generator())
void secp256r1_point_set_infinity(SECP256R1_POINT *R);
int secp256r1_point_is_at_infinity(const SECP256R1_POINT *P);