Lines Matching refs:pub_key
137 const ec_pub_key *pub_key, hash_alg_type hash_type) in sm2_compute_Z() argument
149 MUST_HAVE((id != NULL) && (pub_key != NULL), ret, err); in sm2_compute_Z()
152 ret = pub_key_check_initialized_and_type(pub_key, SM2); EG(ret, err); in sm2_compute_Z()
162 G = &(pub_key->params->ec_gen); in sm2_compute_Z()
163 Y = &(pub_key->y); in sm2_compute_Z()
164 p_bit_len = pub_key->params->ec_fp.p_bitlen; in sm2_compute_Z()
167 a = &(pub_key->params->ec_curve.a); in sm2_compute_Z()
168 b = &(pub_key->params->ec_curve.b); in sm2_compute_Z()
273 &(ctx->key_pair->pub_key), ctx->h->type); EG(ret, err); in _sm2_sign_init()
354 dbg_pub_key_print("Y", &(ctx->key_pair->pub_key)); in _sm2_sign_finalize()
533 ret = pub_key_check_initialized_and_type(ctx->pub_key, SM2); EG(ret, err); in _sm2_verify_init()
539 q = &(ctx->pub_key->params->ec_gen_order); in _sm2_verify_init()
540 q_bit_len = ctx->pub_key->params->ec_gen_order_bitlen; in _sm2_verify_init()
569 …ret = sm2_compute_Z(Z, &Zlen, ctx->adata, ctx->adata_len, ctx->pub_key, ctx->h->type); EG(ret, err… in _sm2_verify_init()
642 G = &(ctx->pub_key->params->ec_gen); in _sm2_verify_finalize()
643 Y = &(ctx->pub_key->y); in _sm2_verify_finalize()
644 q = &(ctx->pub_key->params->ec_gen_order); in _sm2_verify_finalize()