SM2_NUM
static const EC_CURVE sm2_curves[SM2_NUM] = {
uint8_t sm2_doit[SM2_NUM] = { 0 };
OPENSSL_assert(sm2_curves[SM2_NUM - 1].nid == NID_sm2);
OPENSSL_assert(strcmp(sm2_choices[SM2_NUM - 1].name, "curveSM2") == 0);
for (testnum = 0; testnum < SM2_NUM; testnum++) {
for (testnum++; testnum < SM2_NUM; testnum++)
for (k = 0; k < SM2_NUM; k++) {
static const OPT_PAIR sm2_choices[SM2_NUM] = {
static double sm2_results[SM2_NUM][2]; /* 2 ops: sign then verify */
EVP_MD_CTX *sm2_ctx[SM2_NUM];
EVP_MD_CTX *sm2_vfy_ctx[SM2_NUM];
EVP_PKEY *sm2_pkey[SM2_NUM];