Lines Matching refs:hm
141 const hash_mapping *hm; in sm2_compute_Z() local
154 ret = get_hash_by_type(hash_type, &hm); EG(ret, err); in sm2_compute_Z()
155 MUST_HAVE((hm != NULL), ret, err); in sm2_compute_Z()
158 hsize = hm->digest_size; in sm2_compute_Z()
171 ret = hash_mapping_callbacks_sanity_check(hm); EG(ret, err); in sm2_compute_Z()
172 ret = hm->hfunc_init(&hctx); EG(ret, err); in sm2_compute_Z()
177 ret = hm->hfunc_update(&hctx, buf, 2); EG(ret, err); in sm2_compute_Z()
180 ret = hm->hfunc_update(&hctx, id, id_len); EG(ret, err); in sm2_compute_Z()
184 ret = hm->hfunc_update(&hctx, buf, p_len); EG(ret, err); in sm2_compute_Z()
188 ret = hm->hfunc_update(&hctx, buf, p_len); EG(ret, err); in sm2_compute_Z()
192 ret = hm->hfunc_update(&hctx, buf, (u32)(2 * p_len)); EG(ret, err); in sm2_compute_Z()
196 ret = hm->hfunc_update(&hctx, buf, (u32)(2 * p_len)); EG(ret, err); in sm2_compute_Z()
199 ret = hm->hfunc_finalize(&hctx, Z); EG(ret, err); in sm2_compute_Z()