Go to the documentation of this file.
23 #include "../internal.h"
75 if (!
key->has_private) {
129 CBB spki, algorithm,
oid, key_bitstring;
169 if (!
key->has_private) {
247 return *out_ptr == NULL ? 0 : 32;
static int OPENSSL_memcmp(const void *s1, const void *s2, size_t n)
static int x25519_get_priv_raw(const EVP_PKEY *pkey, uint8_t *out, size_t *out_len)
#define OPENSSL_PUT_ERROR(library, reason)
#define CBS_ASN1_OCTETSTRING
#define EVP_R_NOT_A_PRIVATE_KEY
static int x25519_set_pub_raw(EVP_PKEY *pkey, const uint8_t *in, size_t len)
static int x25519_priv_decode(EVP_PKEY *out, CBS *params, CBS *key)
#define EVP_R_ENCODE_ERROR
static int x25519_size(const EVP_PKEY *pkey)
#define EVP_R_DECODE_ERROR
int EVP_PKEY_set1_tls_encodedpoint(EVP_PKEY *pkey, const uint8_t *in, size_t len)
#define EVP_R_UNSUPPORTED_PUBLIC_KEY_TYPE
static int x25519_pub_cmp(const EVP_PKEY *a, const EVP_PKEY *b)
static void * OPENSSL_memcpy(void *dst, const void *src, size_t n)
size_t EVP_PKEY_get1_tls_encodedpoint(const EVP_PKEY *pkey, uint8_t **out_ptr)
static int x25519_priv_encode(CBB *out, const EVP_PKEY *pkey)
const EVP_PKEY_ASN1_METHOD x25519_asn1_meth
union evp_pkey_st::@364 pkey
static int x25519_pub_encode(CBB *out, const EVP_PKEY *pkey)
static int x25519_get_pub_raw(const EVP_PKEY *pkey, uint8_t *out, size_t *out_len)
#define CBS_ASN1_BITSTRING
static int x25519_pub_decode(EVP_PKEY *out, CBS *params, CBS *key)
#define X25519_public_from_private
static int x25519_bits(const EVP_PKEY *pkey)
#define EVP_R_BUFFER_TOO_SMALL
static void x25519_free(EVP_PKEY *pkey)
#define CBS_ASN1_SEQUENCE
static int x25519_set_priv_raw(EVP_PKEY *pkey, const uint8_t *in, size_t len)
#define ERR_R_MALLOC_FAILURE
#define CBB_add_asn1_uint64
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:38