Lines Matching refs:vpdsactx
274 dsa_signverify_init(void *vpdsactx, void *vdsa, in dsa_signverify_init() argument
279 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_signverify_init()
316 static int dsa_sign_init(void *vpdsactx, void *vdsa, const OSSL_PARAM params[]) in dsa_sign_init() argument
318 return dsa_signverify_init(vpdsactx, vdsa, dsa_set_ctx_params, params, in dsa_sign_init()
327 static int dsa_sign_directly(void *vpdsactx, in dsa_sign_directly() argument
331 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_sign_directly()
366 static int dsa_signverify_message_update(void *vpdsactx, in dsa_signverify_message_update() argument
370 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_signverify_message_update()
378 static int dsa_sign_message_final(void *vpdsactx, unsigned char *sig, in dsa_sign_message_final() argument
381 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_sign_message_final()
402 return dsa_sign_directly(vpdsactx, sig, siglen, sigsize, digest, dlen); in dsa_sign_message_final()
409 static int dsa_sign(void *vpdsactx, unsigned char *sig, size_t *siglen, in dsa_sign() argument
412 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_sign()
429 static int dsa_verify_init(void *vpdsactx, void *vdsa, in dsa_verify_init() argument
432 return dsa_signverify_init(vpdsactx, vdsa, dsa_set_ctx_params, params, in dsa_verify_init()
436 static int dsa_verify_directly(void *vpdsactx, in dsa_verify_directly() argument
440 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_verify_directly()
449 static int dsa_verify_set_sig(void *vpdsactx, in dsa_verify_set_sig() argument
452 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_verify_set_sig()
462 static int dsa_verify_message_final(void *vpdsactx) in dsa_verify_message_final() argument
464 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_verify_message_final()
481 return dsa_verify_directly(vpdsactx, pdsactx->sig, pdsactx->siglen, in dsa_verify_message_final()
489 static int dsa_verify(void *vpdsactx, in dsa_verify() argument
493 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_verify()
507 static int dsa_digest_signverify_init(void *vpdsactx, const char *mdname, in dsa_digest_signverify_init() argument
511 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_digest_signverify_init()
516 if (!dsa_signverify_init(vpdsactx, vdsa, dsa_set_ctx_params, params, in dsa_digest_signverify_init()
545 static int dsa_digest_sign_init(void *vpdsactx, const char *mdname, in dsa_digest_sign_init() argument
548 return dsa_digest_signverify_init(vpdsactx, mdname, vdsa, params, in dsa_digest_sign_init()
553 static int dsa_digest_signverify_update(void *vpdsactx, const unsigned char *data, in dsa_digest_signverify_update() argument
556 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_digest_signverify_update()
564 return dsa_signverify_message_update(vpdsactx, data, datalen); in dsa_digest_signverify_update()
567 static int dsa_digest_sign_final(void *vpdsactx, unsigned char *sig, in dsa_digest_sign_final() argument
570 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_digest_sign_final()
586 static int dsa_digest_verify_init(void *vpdsactx, const char *mdname, in dsa_digest_verify_init() argument
589 return dsa_digest_signverify_init(vpdsactx, mdname, vdsa, params, in dsa_digest_verify_init()
594 int dsa_digest_verify_final(void *vpdsactx, const unsigned char *sig, in dsa_digest_verify_final() argument
597 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_digest_verify_final()
607 ok = dsa_verify_message_final(vpdsactx); in dsa_digest_verify_final()
614 static void dsa_freectx(void *vpdsactx) in dsa_freectx() argument
616 PROV_DSA_CTX *ctx = (PROV_DSA_CTX *)vpdsactx; in dsa_freectx()
626 static void *dsa_dupctx(void *vpdsactx) in dsa_dupctx() argument
628 PROV_DSA_CTX *srcctx = (PROV_DSA_CTX *)vpdsactx; in dsa_dupctx()
669 static int dsa_get_ctx_params(void *vpdsactx, OSSL_PARAM *params) in dsa_get_ctx_params() argument
671 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_get_ctx_params()
716 static int dsa_common_set_ctx_params(void *vpdsactx, const OSSL_PARAM params[]) in dsa_common_set_ctx_params() argument
718 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_common_set_ctx_params()
745 static int dsa_set_ctx_params(void *vpdsactx, const OSSL_PARAM params[]) in dsa_set_ctx_params() argument
747 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_set_ctx_params()
788 static const OSSL_PARAM *dsa_settable_ctx_params(void *vpdsactx, in dsa_settable_ctx_params() argument
791 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_settable_ctx_params()
798 static int dsa_get_ctx_md_params(void *vpdsactx, OSSL_PARAM *params) in dsa_get_ctx_md_params() argument
800 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_get_ctx_md_params()
808 static const OSSL_PARAM *dsa_gettable_ctx_md_params(void *vpdsactx) in dsa_gettable_ctx_md_params() argument
810 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_gettable_ctx_md_params()
818 static int dsa_set_ctx_md_params(void *vpdsactx, const OSSL_PARAM params[]) in dsa_set_ctx_md_params() argument
820 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_set_ctx_md_params()
828 static const OSSL_PARAM *dsa_settable_ctx_md_params(void *vpdsactx) in dsa_settable_ctx_md_params() argument
830 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_settable_ctx_md_params()
890 static int dsa_sigalg_signverify_init(void *vpdsactx, void *vdsa, in dsa_sigalg_signverify_init() argument
896 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_sigalg_signverify_init()
901 if (!dsa_signverify_init(vpdsactx, vdsa, set_ctx_params, params, operation, in dsa_sigalg_signverify_init()
940 static const OSSL_PARAM *dsa_sigalg_settable_ctx_params(void *vpdsactx, in dsa_sigalg_settable_ctx_params() argument
943 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_sigalg_settable_ctx_params()
950 static int dsa_sigalg_set_ctx_params(void *vpdsactx, const OSSL_PARAM params[]) in dsa_sigalg_set_ctx_params() argument
952 PROV_DSA_CTX *pdsactx = (PROV_DSA_CTX *)vpdsactx; in dsa_sigalg_set_ctx_params()
987 dsa_##md##_sign_init(void *vpdsactx, void *vdsa, \
992 return dsa_sigalg_signverify_init(vpdsactx, vdsa, \
1000 dsa_##md##_sign_message_init(void *vpdsactx, void *vdsa, \
1005 return dsa_sigalg_signverify_init(vpdsactx, vdsa, \
1013 dsa_##md##_verify_init(void *vpdsactx, void *vdsa, \
1018 return dsa_sigalg_signverify_init(vpdsactx, vdsa, \
1026 dsa_##md##_verify_message_init(void *vpdsactx, void *vdsa, \
1031 return dsa_sigalg_signverify_init(vpdsactx, vdsa, \