Go to the documentation of this file.
68 #include "../bytestring/internal.h"
69 #include "../internal.h"
90 *out_type =
method->pkey_id;
130 if (
ret->ameth->pub_decode == NULL) {
134 if (!
ret->ameth->pub_decode(
ret, &algorithm, &
key)) {
146 if (
key->ameth == NULL ||
key->ameth->pub_encode == NULL) {
151 return key->ameth->pub_encode(cbb,
key);
156 CBS pkcs8, algorithm,
key;
182 if (
ret->ameth->priv_decode == NULL) {
186 if (!
ret->ameth->priv_decode(
ret, &algorithm, &
key)) {
198 if (
key->ameth == NULL ||
key->ameth->priv_encode == NULL) {
203 return key->ameth->priv_encode(cbb,
key);
292 while (
CBS_len(&sequence) > 0) {
519 if (ec_key == NULL) {
531 if (ec_key == NULL) {
#define CBS_get_asn1_uint64
static const EVP_PKEY_ASN1_METHOD *const kASN1Methods[]
RSA * d2i_RSA_PUBKEY(RSA **out, const uint8_t **inp, long len)
int EVP_marshal_public_key(CBB *cbb, const EVP_PKEY *key)
#define EC_KEY_parse_private_key
static int OPENSSL_memcmp(const void *s1, const void *s2, size_t n)
int i2d_PublicKey(const EVP_PKEY *key, uint8_t **outp)
#define RSA_parse_private_key
int i2d_RSA_PUBKEY(const RSA *rsa, uint8_t **outp)
#define OPENSSL_PUT_ERROR(library, reason)
#define OPENSSL_ARRAY_SIZE(array)
#define CBS_ASN1_OCTETSTRING
EVP_PKEY * d2i_PrivateKey(int type, EVP_PKEY **out, const uint8_t **inp, long len)
#define EVP_PKEY_set1_DSA
int i2d_EC_PUBKEY(const EC_KEY *ec_key, uint8_t **outp)
static size_t num_elements(const uint8_t *in, size_t in_len)
#define EVP_PKEY_get1_RSA
EVP_PKEY * d2i_PublicKey(int type, EVP_PKEY **out, const uint8_t **inp, long len)
#define EVP_R_DECODE_ERROR
#define EVP_PKEY_get1_EC_KEY
EC_KEY * d2i_EC_PUBKEY(EC_KEY **out, const uint8_t **inp, long len)
#define CBS_get_any_asn1_element
#define EVP_R_UNSUPPORTED_PUBLIC_KEY_TYPE
int i2d_PUBKEY(const EVP_PKEY *pkey, uint8_t **outp)
#define RSA_parse_public_key
int i2d_DSA_PUBKEY(const DSA *dsa, uint8_t **outp)
unsigned __int64 uint64_t
#define EVP_PKEY_set_type
#define EVP_PKEY_assign_RSA
static EVP_PKEY * old_priv_decode(CBS *cbs, int type)
#define EVP_PKEY_set1_EC_KEY
#define DSA_parse_private_key
#define EVP_PKEY_set1_RSA
static int parse_key_type(CBS *cbs, int *out_type)
#define EVP_R_UNSUPPORTED_ALGORITHM
EVP_PKEY * d2i_PUBKEY(EVP_PKEY **out, const uint8_t **inp, long len)
#define CBS_ASN1_BITSTRING
EVP_PKEY * EVP_parse_private_key(CBS *cbs)
UniquePtr< SSL_SESSION > ret
#define EVP_PKEY_assign_EC_KEY
#define EVP_R_UNKNOWN_PUBLIC_KEY_TYPE
DSA * d2i_DSA_PUBKEY(DSA **out, const uint8_t **inp, long len)
EVP_PKEY * EVP_parse_public_key(CBS *cbs)
int EVP_marshal_private_key(CBB *cbb, const EVP_PKEY *key)
#define EVP_R_DIFFERENT_KEY_TYPES
#define EVP_PKEY_assign_DSA
#define EVP_PKEY_get1_DSA
#define CBS_ASN1_SEQUENCE
EVP_PKEY * d2i_AutoPrivateKey(EVP_PKEY **out, const uint8_t **inp, long len)
#define ed25519_asn1_meth
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:19