Lines Matching refs:sig

107     unsigned char *sig;  member
316 unsigned char *sig, size_t *siglen, size_t sigsize, in ecdsa_sign_directly() argument
327 if (sig == NULL) { in ecdsa_sign_directly()
348 ret = ossl_ecdsa_deterministic_sign(tbs, tbslen, sig, &sltmp, in ecdsa_sign_directly()
353 ret = ECDSA_sign_ex(0, tbs, tbslen, sig, &sltmp, ctx->kinv, ctx->r, in ecdsa_sign_directly()
375 static int ecdsa_sign_message_final(void *vctx, unsigned char *sig, in ecdsa_sign_message_final() argument
390 if (sig != NULL 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
410 if (sig == NULL) in ecdsa_sign()
411 return ecdsa_sign_message_final(ctx, sig, siglen, sigsize); in ecdsa_sign()
415 return ecdsa_sign_message_final(ctx, sig, siglen, sigsize); in ecdsa_sign()
417 return ecdsa_sign_directly(ctx, sig, siglen, sigsize, tbs, tbslen); in ecdsa_sign()
432 const unsigned char *sig, size_t siglen, in ecdsa_verify_directly() argument
440 return ECDSA_verify(0, tbs, tbslen, sig, siglen, ctx->ec); in ecdsa_verify_directly()
444 const unsigned char *sig, size_t siglen) in ecdsa_verify_set_sig() argument
451 (unsigned char *)sig, siglen); in ecdsa_verify_set_sig()
472 return ecdsa_verify_directly(vctx, ctx->sig, ctx->siglen, in ecdsa_verify_message_final()
481 const unsigned char *sig, size_t siglen, in ecdsa_verify() argument
487 if (ecdsa_verify_set_sig(ctx, sig, siglen) <= 0) in ecdsa_verify()
493 return ecdsa_verify_directly(ctx, sig, siglen, tbs, tbslen); in ecdsa_verify()
559 int ecdsa_digest_sign_final(void *vctx, unsigned char *sig, size_t *siglen, in ecdsa_digest_sign_final() argument
571 ok = ecdsa_sign_message_final(ctx, sig, siglen, sigsize); in ecdsa_digest_sign_final()
586 int ecdsa_digest_verify_final(void *vctx, const unsigned char *sig, in ecdsa_digest_verify_final() argument
599 if (ecdsa_verify_set_sig(ctx, sig, siglen)) in ecdsa_digest_verify_final()
614 OPENSSL_free(ctx->sig); in ecdsa_freectx()
985 OPENSSL_free(ctx->sig); in ecdsa_sigalg_set_ctx_params()
986 ctx->sig = NULL; in ecdsa_sigalg_set_ctx_params()
988 if (!OSSL_PARAM_get_octet_string(p, (void **)&ctx->sig, in ecdsa_sigalg_set_ctx_params()