mbedtls_asn1_buf is only used within mbedTLS.
 
Symbols
loading...
Files
loading...

mbedtls_asn1_buf struct

Type-length-value structure that allows for ASN1 using DER.

Syntax

typedef struct mbedtls_asn1_buf {     int tag;                     size_t len;                  unsigned char *p;        } mbedtls_asn1_buf;

Fields

tag

ASN1 type, e.g. MBEDTLS_ASN1_UTF8_STRING. Read more...

len

ASN1 length, in octets. Read more...

p

ASN1 data, e.g. in ASCII. Read more...

References

LocationReferrerScopeText
asn1.h:134
typedef struct mbedtls_asn1_buf
asn1.h:140
x509.h:189
asn1.h:140mbedtls_asn1_buf
asn1.h:158mbedtls_asn1_sequence::bufmbedtls_asn1_sequence
mbedtls_asn1_buf buf; /**< Buffer containing the given ASN.1 item. */
asn1.h:168mbedtls_asn1_named_data::oidmbedtls_asn1_named_data
mbedtls_asn1_buf oid; /**< The object identifier. */
asn1.h:169mbedtls_asn1_named_data::valmbedtls_asn1_named_data
mbedtls_asn1_buf val; /**< The named value. */
asn1.h:308mbedtls_asn1_get_alg()::algmbedtls_asn1_get_alg()
asn1.h:324mbedtls_asn1_get_alg_null()::algmbedtls_asn1_get_alg_null()
asn1parse.c:244mbedtls_asn1_get_sequence_of()::bufmbedtls_asn1_get_sequence_of()
asn1parse.c:289mbedtls_asn1_get_alg()::algmbedtls_asn1_get_alg()
asn1parse.c:312mbedtls_asn1_get_alg()
asn1parse.c:333mbedtls_asn1_get_alg_null()::algmbedtls_asn1_get_alg_null()
asn1parse.c:336mbedtls_asn1_get_alg_null()::paramsmbedtls_asn1_get_alg_null()
asn1parse.c:338mbedtls_asn1_get_alg_null()
memset( &params, 0, sizeof(mbedtls_asn1_buf) );
oid.c:251oid_x520_attr_from_asn1()::oidoid_x520_attr_from_asn1()
oid.c:252mbedtls_oid_get_attr_short_name()::oidmbedtls_oid_get_attr_short_name()
oid.c:290oid_x509_ext_from_asn1()::oidoid_x509_ext_from_asn1()
oid.c:291mbedtls_oid_get_x509_ext_type()::oidmbedtls_oid_get_x509_ext_type()
oid.c:304oid_ext_key_usage_from_asn1()::oidoid_ext_key_usage_from_asn1()
oid.c:305mbedtls_oid_get_extended_key_usage()::oidmbedtls_oid_get_extended_key_usage()
oid.c:412oid_sig_alg_from_asn1()::oidoid_sig_alg_from_asn1()
oid.c:413mbedtls_oid_get_sig_alg_desc()::oidmbedtls_oid_get_sig_alg_desc()
oid.c:414mbedtls_oid_get_sig_alg()::oidmbedtls_oid_get_sig_alg()
oid.c:446oid_pk_alg_from_asn1()::oidoid_pk_alg_from_asn1()
oid.c:447mbedtls_oid_get_pk_alg()::oidmbedtls_oid_get_pk_alg()
oid.c:533oid_grp_id_from_asn1()::oidoid_grp_id_from_asn1()
oid.c:534mbedtls_oid_get_ec_grp()::oidmbedtls_oid_get_ec_grp()
oid.c:563oid_cipher_alg_from_asn1()::oidoid_cipher_alg_from_asn1()
oid.c:564mbedtls_oid_get_cipher_alg()::oidmbedtls_oid_get_cipher_alg()
oid.c:628oid_md_alg_from_asn1()::oidoid_md_alg_from_asn1()
oid.c:629mbedtls_oid_get_md_alg()::oidmbedtls_oid_get_md_alg()
oid.c:674oid_md_hmac_from_asn1()::oidoid_md_hmac_from_asn1()
oid.c:675mbedtls_oid_get_md_hmac()::oidmbedtls_oid_get_md_hmac()
oid.c:719mbedtls_oid_get_numeric_string()::oidmbedtls_oid_get_numeric_string()
oid.h:425mbedtls_oid_get_numeric_string()::oidmbedtls_oid_get_numeric_string()
oid.h:436mbedtls_oid_get_x509_ext_type()::oidmbedtls_oid_get_x509_ext_type()
oid.h:448mbedtls_oid_get_attr_short_name()::oidmbedtls_oid_get_attr_short_name()
oid.h:458mbedtls_oid_get_pk_alg()::oidmbedtls_oid_get_pk_alg()
oid.h:481mbedtls_oid_get_ec_grp()::oidmbedtls_oid_get_ec_grp()
oid.h:506mbedtls_oid_get_sig_alg()::oidmbedtls_oid_get_sig_alg()
oid.h:517mbedtls_oid_get_sig_alg_desc()::oidmbedtls_oid_get_sig_alg_desc()
oid.h:540mbedtls_oid_get_md_alg()::oidmbedtls_oid_get_md_alg()
oid.h:550mbedtls_oid_get_md_hmac()::oidmbedtls_oid_get_md_hmac()
oid.h:561mbedtls_oid_get_extended_key_usage()::oidmbedtls_oid_get_extended_key_usage()
oid.h:583mbedtls_oid_get_cipher_alg()::oidmbedtls_oid_get_cipher_alg()
pkparse.c:190pk_get_ecparams()::paramspk_get_ecparams()
pkparse.c:462pk_use_ecparams()::paramspk_use_ecparams()
pkparse.c:585pk_get_pk_alg()::paramspk_get_pk_alg()
pkparse.c:588pk_get_pk_alg()::alg_oidpk_get_pk_alg()
pkparse.c:590pk_get_pk_alg()
memset( params, 0, sizeof(mbedtls_asn1_buf) );
pkparse.c:621mbedtls_pk_parse_subpubkey()::alg_paramsmbedtls_pk_parse_subpubkey()
mbedtls_asn1_buf alg_params;
pkparse.c:818pk_parse_key_sec1_der()::paramspk_parse_key_sec1_der()
pkparse.c:956pk_parse_key_pkcs8_unencrypted_der()::paramspk_parse_key_pkcs8_unencrypted_der()
x509.c:84mbedtls_x509_get_serial()::serialmbedtls_x509_get_serial()
x509.c:115mbedtls_x509_get_alg_null()::algmbedtls_x509_get_alg_null()
x509.c:129mbedtls_x509_get_alg()::algmbedtls_x509_get_alg()
x509.c:357x509_get_attr_type_value()::oidx509_get_attr_type_value()
x509.c:358x509_get_attr_type_value()::valx509_get_attr_type_value()
x509.c:634mbedtls_x509_get_sig()::sigmbedtls_x509_get_sig()
int mbedtls_x509_get_sig( unsigned char **p, const unsigned char *end, mbedtls_x509_buf *sig )
x509.c:661mbedtls_x509_get_sig_alg()::sig_oidmbedtls_x509_get_sig_alg()
x509.c:711mbedtls_x509_get_ext()::extmbedtls_x509_get_ext()
x509.c:808mbedtls_x509_serial_gets()::serialmbedtls_x509_serial_gets()
x509.c:842mbedtls_x509_sig_alg_gets()::sig_oidmbedtls_x509_sig_alg_gets()
x509.h:189
x509.h:242mbedtls_x509_serial_gets()::serialmbedtls_x509_serial_gets()
x509.h:290mbedtls_x509_get_alg_null()::algmbedtls_x509_get_alg_null()
x509.h:292mbedtls_x509_get_alg()::algmbedtls_x509_get_alg()
x509.h:298mbedtls_x509_get_sig()::sigmbedtls_x509_get_sig()
int mbedtls_x509_get_sig( unsigned char **p, const unsigned char *end, mbedtls_x509_buf *sig );
x509.h:299mbedtls_x509_get_sig_alg()::sig_oidmbedtls_x509_get_sig_alg()
x509.h:305mbedtls_x509_get_serial()::serialmbedtls_x509_get_serial()
x509.h:307mbedtls_x509_get_ext()::extmbedtls_x509_get_ext()
x509.h:308mbedtls_x509_sig_alg_gets()::sig_oidmbedtls_x509_sig_alg_gets()
x509_crl.h:54mbedtls_x509_crl_entry::rawmbedtls_x509_crl_entry
x509_crl.h:56mbedtls_x509_crl_entry::serialmbedtls_x509_crl_entry
x509_crl.h:60mbedtls_x509_crl_entry::entry_extmbedtls_x509_crl_entry
x509_crl.h:72mbedtls_x509_crl::rawmbedtls_x509_crl
mbedtls_x509_buf raw; /**< The raw certificate data (DER). */
x509_crl.h:73mbedtls_x509_crl::tbsmbedtls_x509_crl
mbedtls_x509_buf tbs; /**< The raw certificate body (DER). The part that is To Be Signed. */
x509_crl.h:76mbedtls_x509_crl::sig_oidmbedtls_x509_crl
mbedtls_x509_buf sig_oid; /**< CRL signature type identifier */
x509_crl.h:78mbedtls_x509_crl::issuer_rawmbedtls_x509_crl
mbedtls_x509_buf issuer_raw; /**< The raw issuer data (DER). */
x509_crl.h:87mbedtls_x509_crl::crl_extmbedtls_x509_crl
x509_crl.h:89mbedtls_x509_crl::sig_oid2mbedtls_x509_crl
x509_crl.h:90mbedtls_x509_crl::sigmbedtls_x509_crl
x509_crt.c:262x509_check_wildcard()::namex509_check_wildcard()
static int x509_check_wildcard( const char *cn, const mbedtls_x509_buf *name )
x509_crt.c:298x509_string_cmp()::ax509_string_cmp()
static int x509_string_cmp( const mbedtls_x509_buf *a, const mbedtls_x509_buf *b )
x509_crt.c:448x509_get_uid()::uidx509_get_uid()
x509_crt.c:620x509_get_subject_alt_name()::bufx509_get_subject_alt_name()
x509_crt.c:717x509_get_crt_ext()::extn_oidx509_get_crt_ext()
mbedtls_x509_buf extn_oid = {0, 0, NULL};
x509_crt.c:837x509_crt_parse_der_core()::sig_params1x509_crt_parse_der_core()
mbedtls_x509_buf sig_params1, sig_params2, sig_oid2;
x509_crt.c:839x509_crt_parse_der_core()
memset( &sig_params1, 0, sizeof( mbedtls_x509_buf ) );
x509_crt.c:840x509_crt_parse_der_core()
memset( &sig_params2, 0, sizeof( mbedtls_x509_buf ) );
x509_crt.c:841x509_crt_parse_der_core()
memset( &sig_oid2, 0, sizeof( mbedtls_x509_buf ) );
x509_crt.c:2408x509_crt_check_cn()::namex509_crt_check_cn()
x509_crt.h:55mbedtls_x509_crt::rawmbedtls_x509_crt
mbedtls_x509_buf raw; /**< The raw certificate data (DER). */
x509_crt.h:56mbedtls_x509_crt::tbsmbedtls_x509_crt
mbedtls_x509_buf tbs; /**< The raw certificate body (DER). The part that is To Be Signed. */
x509_crt.h:59mbedtls_x509_crt::serialmbedtls_x509_crt
mbedtls_x509_buf serial; /**< Unique id for certificate issued by a specific CA. */
x509_crt.h:60mbedtls_x509_crt::sig_oidmbedtls_x509_crt
mbedtls_x509_buf sig_oid; /**< Signature algorithm, e.g. sha1RSA */
x509_crt.h:62mbedtls_x509_crt::issuer_rawmbedtls_x509_crt
mbedtls_x509_buf issuer_raw; /**< The raw issuer data (DER). Used for quick comparison. */
x509_crt.h:63mbedtls_x509_crt::subject_rawmbedtls_x509_crt
mbedtls_x509_buf subject_raw; /**< The raw subject data (DER). Used for quick comparison. */
x509_crt.h:73mbedtls_x509_crt::issuer_idmbedtls_x509_crt
mbedtls_x509_buf issuer_id; /**< Optional X.509 v2/v3 issuer unique identifier. */
x509_crt.h:74mbedtls_x509_crt::subject_idmbedtls_x509_crt
mbedtls_x509_buf subject_id; /**< Optional X.509 v2/v3 subject unique identifier. */
x509_crt.h:75mbedtls_x509_crt::v3_extmbedtls_x509_crt
mbedtls_x509_buf v3_ext; /**< Optional X.509 v3 extensions. */
x509_crt.h:88mbedtls_x509_crt::sigmbedtls_x509_crt
mbedtls_x509_buf sig; /**< Signature: hash of the tbs part signed with the private key. */

Type Use

Variables of mbedtls_asn1_buf type
mbedtls_asn1_get_sequence_of()::buf
mbedtls_asn1_get_alg_null()::params
pk_get_pk_alg()::alg_oid
mbedtls_pk_parse_subpubkey()::alg_params
pk_parse_key_sec1_der()::params
pk_parse_key_pkcs8_unencrypted_der()::params
x509_get_attr_type_value()::oid
x509_get_attr_type_value()::val
x509_get_subject_alt_name()::buf
x509_get_crt_ext()::extn_oid
x509_crt_parse_der_core()::sig_params1
x509_crt_parse_der_core()::sig_params2
x509_crt_parse_der_core()::sig_oid2
all items filtered out
mbedtls_asn1_buf
all items filtered out
mbedtls_asn1_buf
all items filtered out
Allocators of mbedtls_asn1_buf
Deletors of mbedtls_asn1_buf
mbedtls_asn1_get_alg_null()::params
pk_get_pk_alg()::alg_oid
mbedtls_pk_parse_subpubkey()::alg_params
pk_parse_key_sec1_der()::params
pk_parse_key_pkcs8_unencrypted_der()::params
x509_get_crt_ext()::extn_oid
x509_crt_parse_der_core()::sig_params1
x509_crt_parse_der_core()::sig_params2
x509_crt_parse_der_core()::sig_oid2
all items filtered out
mbedtls_asn1_buf
mbedtls_asn1_get_alg_null()::params
pk_get_pk_alg()::alg_oid
mbedtls_pk_parse_subpubkey()::alg_params
pk_parse_key_sec1_der()::params
pk_parse_key_pkcs8_unencrypted_der()::params
x509_get_crt_ext()::extn_oid
x509_crt_parse_der_core()::sig_params1
x509_crt_parse_der_core()::sig_params2
x509_crt_parse_der_core()::sig_oid2
all items filtered out