Lines Matching refs:vpsm2ctx
137 static int sm2sig_signature_init(void *vpsm2ctx, void *ec, in sm2sig_signature_init() argument
140 PROV_SM2_CTX *psm2ctx = (PROV_SM2_CTX *)vpsm2ctx; in sm2sig_signature_init()
161 static int sm2sig_sign(void *vpsm2ctx, unsigned char *sig, size_t *siglen, in sm2sig_sign() argument
164 PROV_SM2_CTX *ctx = (PROV_SM2_CTX *)vpsm2ctx; in sm2sig_sign()
189 static int sm2sig_verify(void *vpsm2ctx, const unsigned char *sig, size_t siglen, in sm2sig_verify() argument
192 PROV_SM2_CTX *ctx = (PROV_SM2_CTX *)vpsm2ctx; in sm2sig_verify()
208 static int sm2sig_digest_signverify_init(void *vpsm2ctx, const char *mdname, in sm2sig_digest_signverify_init() argument
211 PROV_SM2_CTX *ctx = (PROV_SM2_CTX *)vpsm2ctx; in sm2sig_digest_signverify_init()
217 if (!sm2sig_signature_init(vpsm2ctx, ec, params) in sm2sig_digest_signverify_init()
279 int sm2sig_digest_signverify_update(void *vpsm2ctx, const unsigned char *data, in sm2sig_digest_signverify_update() argument
282 PROV_SM2_CTX *psm2ctx = (PROV_SM2_CTX *)vpsm2ctx; in sm2sig_digest_signverify_update()
291 int sm2sig_digest_sign_final(void *vpsm2ctx, unsigned char *sig, size_t *siglen, in sm2sig_digest_sign_final() argument
294 PROV_SM2_CTX *psm2ctx = (PROV_SM2_CTX *)vpsm2ctx; in sm2sig_digest_sign_final()
311 return sm2sig_sign(vpsm2ctx, sig, siglen, sigsize, digest, (size_t)dlen); in sm2sig_digest_sign_final()
315 int sm2sig_digest_verify_final(void *vpsm2ctx, const unsigned char *sig, in sm2sig_digest_verify_final() argument
318 PROV_SM2_CTX *psm2ctx = (PROV_SM2_CTX *)vpsm2ctx; in sm2sig_digest_verify_final()
334 return sm2sig_verify(vpsm2ctx, sig, siglen, digest, (size_t)dlen); in sm2sig_digest_verify_final()
337 static void sm2sig_freectx(void *vpsm2ctx) in sm2sig_freectx() argument
339 PROV_SM2_CTX *ctx = (PROV_SM2_CTX *)vpsm2ctx; in sm2sig_freectx()
348 static void *sm2sig_dupctx(void *vpsm2ctx) in sm2sig_dupctx() argument
350 PROV_SM2_CTX *srcctx = (PROV_SM2_CTX *)vpsm2ctx; in sm2sig_dupctx()
399 static int sm2sig_get_ctx_params(void *vpsm2ctx, OSSL_PARAM *params) in sm2sig_get_ctx_params() argument
401 PROV_SM2_CTX *psm2ctx = (PROV_SM2_CTX *)vpsm2ctx; in sm2sig_get_ctx_params()
434 static const OSSL_PARAM *sm2sig_gettable_ctx_params(ossl_unused void *vpsm2ctx, in sm2sig_gettable_ctx_params() argument
440 static int sm2sig_set_ctx_params(void *vpsm2ctx, const OSSL_PARAM params[]) in sm2sig_set_ctx_params() argument
442 PROV_SM2_CTX *psm2ctx = (PROV_SM2_CTX *)vpsm2ctx; in sm2sig_set_ctx_params()
504 static const OSSL_PARAM *sm2sig_settable_ctx_params(ossl_unused void *vpsm2ctx, in sm2sig_settable_ctx_params() argument
510 static int sm2sig_get_ctx_md_params(void *vpsm2ctx, OSSL_PARAM *params) in sm2sig_get_ctx_md_params() argument
512 PROV_SM2_CTX *psm2ctx = (PROV_SM2_CTX *)vpsm2ctx; in sm2sig_get_ctx_md_params()
520 static const OSSL_PARAM *sm2sig_gettable_ctx_md_params(void *vpsm2ctx) in sm2sig_gettable_ctx_md_params() argument
522 PROV_SM2_CTX *psm2ctx = (PROV_SM2_CTX *)vpsm2ctx; in sm2sig_gettable_ctx_md_params()
530 static int sm2sig_set_ctx_md_params(void *vpsm2ctx, const OSSL_PARAM params[]) in sm2sig_set_ctx_md_params() argument
532 PROV_SM2_CTX *psm2ctx = (PROV_SM2_CTX *)vpsm2ctx; in sm2sig_set_ctx_md_params()
540 static const OSSL_PARAM *sm2sig_settable_ctx_md_params(void *vpsm2ctx) in sm2sig_settable_ctx_md_params() argument
542 PROV_SM2_CTX *psm2ctx = (PROV_SM2_CTX *)vpsm2ctx; in sm2sig_settable_ctx_md_params()