Lines Matching refs:vctx

300 static int ecdsa_sign_init(void *vctx, void *ec, const OSSL_PARAM params[])  in ecdsa_sign_init()  argument
302 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_sign_init()
315 static int ecdsa_sign_directly(void *vctx, in ecdsa_sign_directly() argument
319 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_sign_directly()
363 static int ecdsa_signverify_message_update(void *vctx, in ecdsa_signverify_message_update() argument
367 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_signverify_message_update()
375 static int ecdsa_sign_message_final(void *vctx, unsigned char *sig, in ecdsa_sign_message_final() argument
378 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_sign_message_final()
393 return ecdsa_sign_directly(vctx, sig, siglen, sigsize, digest, dlen); in ecdsa_sign_message_final()
400 static int ecdsa_sign(void *vctx, unsigned char *sig, size_t *siglen, in ecdsa_sign() argument
403 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_sign()
420 static int ecdsa_verify_init(void *vctx, void *ec, const OSSL_PARAM params[]) in ecdsa_verify_init() argument
422 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_verify_init()
431 static int ecdsa_verify_directly(void *vctx, in ecdsa_verify_directly() argument
435 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_verify_directly()
443 static int ecdsa_verify_set_sig(void *vctx, in ecdsa_verify_set_sig() argument
446 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_verify_set_sig()
456 static int ecdsa_verify_message_final(void *vctx) in ecdsa_verify_message_final() argument
458 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_verify_message_final()
472 return ecdsa_verify_directly(vctx, ctx->sig, ctx->siglen, in ecdsa_verify_message_final()
480 static int ecdsa_verify(void *vctx, in ecdsa_verify() argument
484 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_verify()
498 static int ecdsa_digest_signverify_init(void *vctx, const char *mdname, in ecdsa_digest_signverify_init() argument
502 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_digest_signverify_init()
510 if (!ecdsa_signverify_init(vctx, ec, ecdsa_set_ctx_params, params, in ecdsa_digest_signverify_init()
537 static int ecdsa_digest_sign_init(void *vctx, const char *mdname, void *ec, in ecdsa_digest_sign_init() argument
540 return ecdsa_digest_signverify_init(vctx, mdname, ec, params, in ecdsa_digest_sign_init()
545 static int ecdsa_digest_signverify_update(void *vctx, const unsigned char *data, in ecdsa_digest_signverify_update() argument
548 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_digest_signverify_update()
556 return ecdsa_signverify_message_update(vctx, data, datalen); in ecdsa_digest_signverify_update()
559 int ecdsa_digest_sign_final(void *vctx, unsigned char *sig, size_t *siglen, in ecdsa_digest_sign_final() argument
562 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_digest_sign_final()
578 static int ecdsa_digest_verify_init(void *vctx, const char *mdname, void *ec, in ecdsa_digest_verify_init() argument
581 return ecdsa_digest_signverify_init(vctx, mdname, ec, params, in ecdsa_digest_verify_init()
586 int ecdsa_digest_verify_final(void *vctx, const unsigned char *sig, in ecdsa_digest_verify_final() argument
589 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_digest_verify_final()
607 static void ecdsa_freectx(void *vctx) in ecdsa_freectx() argument
609 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_freectx()
621 static void *ecdsa_dupctx(void *vctx) in ecdsa_dupctx() argument
623 PROV_ECDSA_CTX *srcctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_dupctx()
667 static int ecdsa_get_ctx_params(void *vctx, OSSL_PARAM *params) in ecdsa_get_ctx_params() argument
669 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_get_ctx_params()
718 static const OSSL_PARAM *ecdsa_gettable_ctx_params(ossl_unused void *vctx, in ecdsa_gettable_ctx_params() argument
729 static int ecdsa_common_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in ecdsa_common_set_ctx_params() argument
731 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_common_set_ctx_params()
761 static int ecdsa_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in ecdsa_set_ctx_params() argument
763 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_set_ctx_params()
810 static const OSSL_PARAM *ecdsa_settable_ctx_params(void *vctx, in ecdsa_settable_ctx_params() argument
816 static int ecdsa_get_ctx_md_params(void *vctx, OSSL_PARAM *params) in ecdsa_get_ctx_md_params() argument
818 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_get_ctx_md_params()
826 static const OSSL_PARAM *ecdsa_gettable_ctx_md_params(void *vctx) in ecdsa_gettable_ctx_md_params() argument
828 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_gettable_ctx_md_params()
836 static int ecdsa_set_ctx_md_params(void *vctx, const OSSL_PARAM params[]) in ecdsa_set_ctx_md_params() argument
838 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_set_ctx_md_params()
846 static const OSSL_PARAM *ecdsa_settable_ctx_md_params(void *vctx) in ecdsa_settable_ctx_md_params() argument
848 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_settable_ctx_md_params()
908 static int ecdsa_sigalg_signverify_init(void *vctx, void *vec, in ecdsa_sigalg_signverify_init() argument
914 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_sigalg_signverify_init()
919 if (!ecdsa_signverify_init(vctx, vec, set_ctx_params, params, operation, in ecdsa_sigalg_signverify_init()
958 static const OSSL_PARAM *ecdsa_sigalg_settable_ctx_params(void *vctx, in ecdsa_sigalg_settable_ctx_params() argument
961 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_sigalg_settable_ctx_params()
968 static int ecdsa_sigalg_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in ecdsa_sigalg_set_ctx_params() argument
970 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_sigalg_set_ctx_params()
1005 ecdsa_##md##_sign_init(void *vctx, void *vec, \
1010 return ecdsa_sigalg_signverify_init(vctx, vec, \
1018 ecdsa_##md##_sign_message_init(void *vctx, void *vec, \
1023 return ecdsa_sigalg_signverify_init(vctx, vec, \
1031 ecdsa_##md##_verify_init(void *vctx, void *vec, \
1036 return ecdsa_sigalg_signverify_init(vctx, vec, \
1044 ecdsa_##md##_verify_message_init(void *vctx, void *vec, \
1049 return ecdsa_sigalg_signverify_init(vctx, vec, \