This commit is contained in:
Zhi Guan
2018-12-19 12:21:42 +08:00
parent 3e3cc9d4a7
commit 62d385ab71
7 changed files with 10 additions and 5423 deletions

View File

@@ -76,6 +76,9 @@ extern "C" {
#define SM2_DEFAULT_ID_BITS (SM2_DEFAULT_ID_LENGTH * 8)
#define SM2_DEFAULT_ID_DIGEST_LENGTH SM3_DIGEST_LENGTH
int EC_KEY_is_sm2p256v1(const EC_KEY *ec_key);
/* compute identity digest Z */
int SM2_compute_id_digest(const EVP_MD *md, const char *id, size_t idlen,
unsigned char *out, size_t *outlen, EC_KEY *ec_key);