Go to the documentation of this file.
81 #include "../delocate.h"
82 #include "../../internal.h"
120 if (
ret->ecdsa_meth) {
129 if (
ret->ecdsa_meth &&
ret->ecdsa_meth->init && !
ret->ecdsa_meth->init(
ret)) {
131 if (
ret->ecdsa_meth) {
148 if (
ret->group == NULL) {
165 if (
r->ecdsa_meth->finish) {
166 r->ecdsa_meth->finish(
r);
191 if ((src->
group != NULL &&
219 if (
key->group != NULL) {
227 assert(
key->priv_key == NULL);
228 assert(
key->pub_key == NULL);
232 return key->group != NULL;
236 return key->priv_key != NULL ? &
key->priv_key->bignum : NULL;
240 if (
key->group == NULL) {
264 if (
key->group == NULL) {
276 return (
key->pub_key == NULL) ? 0 : 1;
286 return key->conv_form;
290 key->conv_form = cform;
342 #if defined(BORINGSSL_FIPS_BREAK_ECDSA_PWCT)
345 int ok = sig != NULL &&
362 if (!
key || !
key->group || !
x || !
y) {
384 if (
key == NULL ||
key->pub_key == NULL ||
key->group == NULL) {
410 if (
key == NULL ||
key->group == NULL) {
424 if (priv_key == NULL || pub_key == NULL ||
435 key->priv_key = priv_key;
437 key->pub_key = pub_key;
#define EC_GROUP_get0_order
static EC_WRAPPED_SCALAR * ec_wrapped_scalar_new(const EC_GROUP *group)
int EC_KEY_set_ex_data(EC_KEY *d, int idx, void *arg)
#define ec_bignum_to_scalar
#define ec_point_mul_scalar_base
#define EC_R_PUBLIC_KEY_VALIDATION_FAILED
int EC_KEY_up_ref(EC_KEY *r)
#define EC_POINT_point2oct
#define BN_FLG_STATIC_DATA
int CRYPTO_EX_dup(CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from, void **from_d, int index, long argl, void *argp)
#define DEFINE_STATIC_EX_DATA_CLASS(name)
int EC_KEY_check_fips(const EC_KEY *key)
#define OPENSSL_PUT_ERROR(library, reason)
#define EC_R_INVALID_PRIVATE_KEY
EC_KEY * EC_KEY_new_by_curve_name(int nid)
int EC_KEY_get_ex_new_index(long argl, void *argp, CRYPTO_EX_unused *unused, CRYPTO_EX_dup *dup_unused, CRYPTO_EX_free *free_func)
#define EC_GROUP_new_by_curve_name
int EC_KEY_generate_key(EC_KEY *key)
static void * OPENSSL_memset(void *dst, int c, size_t n)
#define EC_R_POINT_IS_NOT_ON_CURVE
#define ec_GFp_simple_points_equal
int EC_KEY_check_key(const EC_KEY *eckey)
#define EC_R_GROUP_MISMATCH
int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, const BIGNUM *x, const BIGNUM *y)
#define CRYPTO_free_ex_data
#define EC_R_MISSING_PARAMETERS
#define EC_POINT_set_affine_coordinates_GFp
#define ERR_R_PASSED_NULL_PARAMETER
EC_WRAPPED_SCALAR * priv_key
int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group)
const EC_GROUP * EC_KEY_get0_group(const EC_KEY *key)
#define EC_POINT_is_on_curve
int EC_KEY_generate_key_fips(EC_KEY *eckey)
#define CRYPTO_new_ex_data
static const uint8_t kDefaultAdditionalData[32]
#define ECDSA_FLAG_OPAQUE
#define ec_random_nonzero_scalar
void CRYPTO_EX_free(void *parent, void *ptr, CRYPTO_EX_DATA *ad, int index, long argl, void *argp)
void EC_KEY_set_asn1_flag(EC_KEY *key, int flag)
void EC_KEY_set_conv_form(EC_KEY *key, point_conversion_form_t cform)
const EC_POINT * EC_KEY_get0_public_key(const EC_KEY *key)
void EC_KEY_set_enc_flags(EC_KEY *key, unsigned int flags)
#define CRYPTO_get_ex_data
unsigned int EC_KEY_get_enc_flags(const EC_KEY *key)
#define EC_R_INVALID_GROUP_ORDER
#define CRYPTO_get_ex_new_index
@ POINT_CONVERSION_UNCOMPRESSED
UniquePtr< SSL_SESSION > ret
void * EC_KEY_get_ex_data(const EC_KEY *d, int idx)
#define ENGINE_get_ECDSA_method
point_conversion_form_t conv_form
size_t EC_KEY_key2buf(const EC_KEY *key, point_conversion_form_t form, unsigned char **out_buf, BN_CTX *ctx)
int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *priv_key)
#define CRYPTO_refcount_inc
static void ec_wrapped_scalar_free(EC_WRAPPED_SCALAR *scalar)
const BIGNUM * EC_KEY_get0_private_key(const EC_KEY *key)
#define EC_R_POINT_AT_INFINITY
int EC_KEY_is_opaque(const EC_KEY *key)
EC_KEY * EC_KEY_new(void)
int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub_key)
#define EC_POINT_is_at_infinity
#define CRYPTO_set_ex_data
point_conversion_form_t EC_KEY_get_conv_form(const EC_KEY *key)
EC_KEY * EC_KEY_dup(const EC_KEY *src)
EC_KEY * EC_KEY_new_method(const ENGINE *engine)
#define ERR_R_MALLOC_FAILURE
void EC_KEY_free(EC_KEY *r)
#define CRYPTO_refcount_dec_and_test_zero
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:18