Go to the documentation of this file.
65 #include "../fipsmodule/ec/internal.h"
66 #include "../bytestring/internal.h"
67 #include "../internal.h"
101 if (inner_group == NULL) {
132 if (priv_key == NULL ||
ret->pub_key == NULL ||
163 &
ret->priv_key->scalar)) {
171 if (
CBS_len(&ec_private_key) != 0) {
193 unsigned enc_flags) {
194 if (
key == NULL ||
key->group == NULL ||
key->priv_key == NULL) {
229 key->conv_form, NULL) ||
248 CBS *out_b,
CBS *out_base_x,
249 CBS *out_base_y,
CBS *out_order) {
317 while (b_len > 0 &&
b[0] == 0) {
377 CBS prime,
a,
b, base_x, base_y, order;
422 if (
out != NULL && *
out != NULL) {
474 if (out_key != NULL) {
483 if (
key == NULL ||
key->group == NULL) {
500 if (keyp == NULL || *keyp == NULL || (*keyp)->
group == NULL) {
505 if (
ret->pub_key == NULL &&
532 if (outp == NULL || buf_len == 0) {
#define EC_GROUP_get0_order
#define CBS_get_asn1_uint64
#define EC_KEY_get0_private_key
#define ec_point_mul_scalar_base
static int OPENSSL_memcmp(const void *s1, const void *s2, size_t n)
#define EC_POINT_point2oct
#define OPENSSL_NUM_BUILT_IN_CURVES
EC_GROUP * EC_KEY_parse_curve_name(CBS *cbs)
int EC_KEY_marshal_curve_name(CBB *cbb, const EC_GROUP *group)
#define OPENSSL_PUT_ERROR(library, reason)
static const uint8_t kPrimeField[]
static int parse_explicit_prime_curve(CBS *in, CBS *out_prime, CBS *out_a, CBS *out_b, CBS *out_base_x, CBS *out_base_y, CBS *out_order)
#define CBS_ASN1_OCTETSTRING
#define CBS_ASN1_CONTEXT_SPECIFIC
#define EC_R_UNKNOWN_GROUP
static int integers_equal(const CBS *a, const uint8_t *b, size_t b_len)
#define EC_GROUP_new_by_curve_name
#define EC_KEY_get0_group
static const unsigned kParametersTag
#define EC_KEY_get_enc_flags
#define EC_R_GROUP_MISMATCH
int i2d_ECPrivateKey(const EC_KEY *key, uint8_t **outp)
int EC_POINT_point2cbb(CBB *out, const EC_GROUP *group, const EC_POINT *point, point_conversion_form_t form, BN_CTX *ctx)
#define CBS_peek_asn1_tag
#define EC_R_MISSING_PARAMETERS
struct built_in_curve curves[OPENSSL_NUM_BUILT_IN_CURVES]
#define ERR_R_PASSED_NULL_PARAMETER
int i2o_ECPublicKey(const EC_KEY *key, uint8_t **outp)
const struct built_in_curves * OPENSSL_built_in_curves(void)
#define EC_GROUP_get_curve_name
unsigned __int64 uint64_t
EC_KEY * EC_KEY_parse_private_key(CBS *cbs, const EC_GROUP *group)
#define EC_PKEY_NO_PUBKEY
int i2d_ECParameters(const EC_KEY *key, uint8_t **outp)
#define CBS_ASN1_CONSTRUCTED
#define EC_PKEY_NO_PARAMETERS
#define EC_R_ENCODE_ERROR
EC_KEY * d2i_ECPrivateKey(EC_KEY **out, const uint8_t **inp, long len)
EC_KEY * d2i_ECParameters(EC_KEY **out_key, const uint8_t **inp, long len)
#define CBS_get_optional_asn1
#define CBS_ASN1_BITSTRING
#define CBS_is_unsigned_asn1_integer
#define EC_POINT_oct2point
@ POINT_CONVERSION_UNCOMPRESSED
EC_KEY * o2i_ECPublicKey(EC_KEY **keyp, const uint8_t **inp, long len)
UniquePtr< SSL_SESSION > ret
zend_class_entry * field_type
int EC_KEY_marshal_private_key(CBB *cbb, const EC_KEY *key, unsigned enc_flags)
#define EC_KEY_set_private_key
#define EC_R_DECODE_ERROR
static const unsigned kPublicKeyTag
#define CBS_ASN1_SEQUENCE
EC_GROUP * EC_KEY_parse_parameters(CBS *cbs)
#define EC_R_INVALID_FORM
#define ERR_R_MALLOC_FAILURE
#define CBB_add_asn1_uint64
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:18