Lines Matching refs:sig
109 unsigned char *sig; member
328 unsigned char *sig, size_t *siglen, size_t sigsize, in dsa_sign_directly() argument
345 if (sig == NULL) { in dsa_sign_directly()
356 ret = ossl_dsa_sign_int(0, tbs, tbslen, sig, &sltmp, pdsactx->dsa, in dsa_sign_directly()
378 static int dsa_sign_message_final(void *vpdsactx, unsigned char *sig, in dsa_sign_message_final() argument
391 if (sig != NULL) { 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
419 if (sig == NULL) in dsa_sign()
420 return dsa_sign_message_final(pdsactx, sig, siglen, sigsize); in dsa_sign()
424 return dsa_sign_message_final(pdsactx, sig, siglen, sigsize); in dsa_sign()
426 return dsa_sign_directly(pdsactx, sig, siglen, sigsize, tbs, tbslen); in dsa_sign()
437 const unsigned char *sig, size_t siglen, in dsa_verify_directly() argument
446 return DSA_verify(0, tbs, tbslen, sig, siglen, pdsactx->dsa); in dsa_verify_directly()
450 const unsigned char *sig, size_t siglen) in dsa_verify_set_sig() argument
457 (unsigned char *)sig, siglen); in dsa_verify_set_sig()
481 return dsa_verify_directly(vpdsactx, pdsactx->sig, pdsactx->siglen, in dsa_verify_message_final()
490 const unsigned char *sig, size_t siglen, in dsa_verify() argument
496 if (dsa_verify_set_sig(pdsactx, sig, siglen) <= 0) in dsa_verify()
502 return dsa_verify_directly(pdsactx, sig, siglen, tbs, tbslen); in dsa_verify()
567 static int dsa_digest_sign_final(void *vpdsactx, unsigned char *sig, in dsa_digest_sign_final() argument
579 ok = dsa_sign_message_final(pdsactx, sig, siglen, sigsize); in dsa_digest_sign_final()
594 int dsa_digest_verify_final(void *vpdsactx, const unsigned char *sig, in dsa_digest_verify_final() argument
606 if (dsa_verify_set_sig(pdsactx, sig, siglen)) in dsa_digest_verify_final()
620 OPENSSL_free(ctx->sig); in dsa_freectx()
967 OPENSSL_free(pdsactx->sig); in dsa_sigalg_set_ctx_params()
968 pdsactx->sig = NULL; in dsa_sigalg_set_ctx_params()
970 if (!OSSL_PARAM_get_octet_string(p, (void **)&pdsactx->sig, in dsa_sigalg_set_ctx_params()