ECDSA_SIG_new
ECDSA_SIG_set0
ECDSA_do_sign
-ECDSA_do_sign_ex
ECDSA_do_verify
ECDSA_get_default_method
ECDSA_get_ex_data
ECDSA_set_ex_data
ECDSA_set_method
ECDSA_sign
-ECDSA_sign_ex
-ECDSA_sign_setup
ECDSA_size
ECDSA_verify
ECPARAMETERS_free
_libre_ECDSA_SIG_get0_s
_libre_ECDSA_SIG_set0
_libre_ECDSA_do_sign
-_libre_ECDSA_do_sign_ex
_libre_ECDSA_do_verify
_libre_ECDSA_OpenSSL
_libre_ECDSA_set_default_method
_libre_ECDSA_get_default_method
_libre_ECDSA_set_method
_libre_ECDSA_size
-_libre_ECDSA_sign_setup
_libre_ECDSA_sign
-_libre_ECDSA_sign_ex
_libre_ECDSA_verify
_libre_ECDSA_get_ex_new_index
_libre_ECDSA_set_ex_data
-/* $OpenBSD: ecdsa.c,v 1.12 2023/07/10 19:10:51 tb Exp $ */
+/* $OpenBSD: ecdsa.c,v 1.13 2023/07/28 08:49:43 tb Exp $ */
/* ====================================================================
* Copyright (c) 2000-2002 The OpenSSL Project. All rights reserved.
*
#include "ec_local.h"
#include "ecdsa_local.h"
+static ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, int dgstlen,
+ const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey);
+static int ECDSA_sign_ex(int type, const unsigned char *dgst, int dgstlen,
+ unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv,
+ const BIGNUM *rp, EC_KEY *eckey);
+static int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *in_ctx, BIGNUM **out_kinv,
+ BIGNUM **out_r);
+
static const ASN1_TEMPLATE ECDSA_SIG_seq_tt[] = {
{
.flags = 0,
}
LCRYPTO_ALIAS(ECDSA_do_sign);
-ECDSA_SIG *
+static ECDSA_SIG *
ECDSA_do_sign_ex(const unsigned char *digest, int digest_len,
const BIGNUM *kinv, const BIGNUM *out_r, EC_KEY *key)
{
}
return key->meth->sign_sig(digest, digest_len, kinv, out_r, key);
}
-LCRYPTO_ALIAS(ECDSA_do_sign_ex);
int
ECDSA_sign(int type, const unsigned char *digest, int digest_len,
}
LCRYPTO_ALIAS(ECDSA_sign);
-int
+static int
ECDSA_sign_ex(int type, const unsigned char *digest, int digest_len,
unsigned char *signature, unsigned int *signature_len, const BIGNUM *kinv,
const BIGNUM *r, EC_KEY *key)
return key->meth->sign(type, digest, digest_len, signature,
signature_len, kinv, r, key);
}
-LCRYPTO_ALIAS(ECDSA_sign_ex);
-int
+static int
ECDSA_sign_setup(EC_KEY *key, BN_CTX *in_ctx, BIGNUM **out_kinv,
BIGNUM **out_r)
{
}
return key->meth->sign_setup(key, in_ctx, out_kinv, out_r);
}
-LCRYPTO_ALIAS(ECDSA_sign_setup);
int
ECDSA_do_verify(const unsigned char *digest, int digest_len,
-/* $OpenBSD: ecdsa.h,v 1.16 2023/06/19 09:12:41 tb Exp $ */
+/* $OpenBSD: ecdsa.h,v 1.17 2023/07/28 08:49:43 tb Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project
*/
ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dgst_len,
EC_KEY *eckey);
-ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, int dgstlen,
- const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey);
int ECDSA_do_verify(const unsigned char *dgst, int dgst_len,
const ECDSA_SIG *sig, EC_KEY* eckey);
int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth);
int ECDSA_size(const EC_KEY *eckey);
-int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv,
- BIGNUM **rp);
int ECDSA_sign(int type, const unsigned char *dgst, int dgstlen,
unsigned char *sig, unsigned int *siglen, EC_KEY *eckey);
-int ECDSA_sign_ex(int type, const unsigned char *dgst, int dgstlen,
- unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv,
- const BIGNUM *rp, EC_KEY *eckey);
int ECDSA_verify(int type, const unsigned char *dgst, int dgstlen,
const unsigned char *sig, int siglen, EC_KEY *eckey);
-/* $OpenBSD: ecdsa.h,v 1.2 2023/07/07 19:37:54 beck Exp $ */
+/* $OpenBSD: ecdsa.h,v 1.3 2023/07/28 08:49:43 tb Exp $ */
/*
* Copyright (c) 2023 Bob Beck <beck@openbsd.org>
*
LCRYPTO_USED(ECDSA_SIG_get0_s);
LCRYPTO_USED(ECDSA_SIG_set0);
LCRYPTO_USED(ECDSA_do_sign);
-LCRYPTO_USED(ECDSA_do_sign_ex);
LCRYPTO_USED(ECDSA_do_verify);
LCRYPTO_USED(ECDSA_OpenSSL);
LCRYPTO_USED(ECDSA_set_default_method);
LCRYPTO_USED(ECDSA_get_default_method);
LCRYPTO_USED(ECDSA_set_method);
LCRYPTO_USED(ECDSA_size);
-LCRYPTO_USED(ECDSA_sign_setup);
LCRYPTO_USED(ECDSA_sign);
-LCRYPTO_USED(ECDSA_sign_ex);
LCRYPTO_USED(ECDSA_verify);
LCRYPTO_USED(ECDSA_get_ex_new_index);
LCRYPTO_USED(ECDSA_set_ex_data);