/mbedtls-development/tests/suites/ |
A D | test_suite_oid.function | 2 #include "mbedtls/oid.h" 21 asn1_buf.p = oid->x; 22 asn1_buf.len = oid->len; 45 asn1_buf.p = oid->x; 46 asn1_buf.len = oid->len; 62 void oid_get_x509_extension( data_t *oid, int exp_type ) 69 ext_oid.p = oid->x; 70 ext_oid.len = oid->len; 86 void oid_get_md_alg_id( data_t *oid, int exp_md_id ) 93 md_oid.p = oid->x; [all …]
|
A D | test_suite_asn1write.function | 234 (const char *) oid->x, oid->len, par_len ); 331 data_t *oid[4] = {oid0, oid1, oid2, oid3}; 348 ASSERT_ALLOC( nd[i].oid.p, oid[i]->len ); 349 memcpy( nd[i].oid.p, oid[i]->x, oid[i]->len ); 350 nd[i].oid.len = oid[i]->len; 382 mbedtls_free( found->oid.p ); 386 mbedtls_free( nd[i].oid.p ); 439 size_t oid_len = strlen( (const char *) oid ); 452 TEST_ASSERT( found->oid.p != oid ); 453 ASSERT_COMPARE( found->oid.p, found->oid.len, oid, oid_len ); [all …]
|
A D | test_suite_oid.data | 4 OID get certificate policy invalid oid 7 OID get certificate policy wrong oid - id-ce-authorityKeyIdentifier 31 OID get Ext Key Usage invalid oid 34 OID get Ext Key Usage wrong oid - id-ce-authorityKeyIdentifier 55 OID get x509 extension - invalid oid 58 OID get x509 extension - wrong oid - id-ce 89 OID hash id - invalid oid
|
A D | test_suite_x509parse.function | 8 #include "mbedtls/oid.h" 388 else if( new_oid != NULL && new_oid->tag == oid->tag && new_oid->len == oid->len && 389 memcmp( new_oid->p, oid->p, oid->len ) == 0 ) 914 mbedtls_x509_buf oid; 923 oid.tag = MBEDTLS_ASN1_OID; 1127 mbedtls_x509_buf oid; 1133 oid.p = buf->x; 1134 oid.len = buf->len; 1155 mbedtls_x509_buf oid; 1161 oid.p = oid_buf->x; [all …]
|
A D | test_suite_asn1parse.function | 676 mbedtls_asn1_buf oid = { -1, 0, NULL }; 682 &oid, ¶ms ), 686 TEST_EQUAL( oid.tag, MBEDTLS_ASN1_OID ); 687 TEST_EQUAL( oid.p - input->x, oid_offset ); 688 TEST_EQUAL( oid.len, (size_t) oid_length ); 701 TEST_EQUAL( oid.tag, MBEDTLS_ASN1_OID ); 702 TEST_EQUAL( oid.p - input->x, oid_offset ); 703 TEST_EQUAL( oid.len, (size_t) oid_length ); 755 ASSERT_ALLOC( head.oid.p, 1 ); 762 TEST_ASSERT( head.oid.p == NULL ); [all …]
|
A D | test_suite_pkwrite.function | 4 #include "mbedtls/oid.h"
|
A D | test_suite_pkparse.function | 4 #include "mbedtls/oid.h"
|
/mbedtls-development/include/mbedtls/ |
A D | oid.h | 463 int mbedtls_oid_get_x509_ext_type( const mbedtls_asn1_buf *oid, int *ext_type ); 484 int mbedtls_oid_get_pk_alg( const mbedtls_asn1_buf *oid, mbedtls_pk_type_t *pk_alg ); 496 const char **oid, size_t *olen ); 507 int mbedtls_oid_get_ec_grp( const mbedtls_asn1_buf *oid, mbedtls_ecp_group_id *grp_id ); 519 const char **oid, size_t *olen ); 532 int mbedtls_oid_get_sig_alg( const mbedtls_asn1_buf *oid, 543 int mbedtls_oid_get_sig_alg_desc( const mbedtls_asn1_buf *oid, const char **desc ); 556 const char **oid, size_t *olen ); 566 int mbedtls_oid_get_md_alg( const mbedtls_asn1_buf *oid, mbedtls_md_type_t *md_alg ); 576 int mbedtls_oid_get_md_hmac( const mbedtls_asn1_buf *oid, mbedtls_md_type_t *md_hmac ); [all …]
|
A D | psa_util.h | 170 char const **oid, size_t *oid_len ) in mbedtls_psa_get_ecc_oid_from_id() argument 179 *oid = MBEDTLS_OID_EC_GRP_SECP192R1; in mbedtls_psa_get_ecc_oid_from_id() 185 *oid = MBEDTLS_OID_EC_GRP_SECP224R1; in mbedtls_psa_get_ecc_oid_from_id() 191 *oid = MBEDTLS_OID_EC_GRP_SECP256R1; in mbedtls_psa_get_ecc_oid_from_id() 197 *oid = MBEDTLS_OID_EC_GRP_SECP384R1; in mbedtls_psa_get_ecc_oid_from_id() 203 *oid = MBEDTLS_OID_EC_GRP_SECP521R1; in mbedtls_psa_get_ecc_oid_from_id() 214 *oid = MBEDTLS_OID_EC_GRP_SECP192K1; in mbedtls_psa_get_ecc_oid_from_id() 237 *oid = MBEDTLS_OID_EC_GRP_BP256R1; in mbedtls_psa_get_ecc_oid_from_id() 243 *oid = MBEDTLS_OID_EC_GRP_BP384R1; in mbedtls_psa_get_ecc_oid_from_id() 249 *oid = MBEDTLS_OID_EC_GRP_BP512R1; in mbedtls_psa_get_ecc_oid_from_id() [all …]
|
A D | asn1write.h | 135 const char *oid, size_t oid_len ); 154 const char *oid, size_t oid_len, 358 const char *oid, size_t oid_len,
|
A D | asn1.h | 195 mbedtls_asn1_buf oid; /**< The object identifier. */ member 608 const char *oid, size_t len );
|
A D | x509.h | 343 int mbedtls_x509_set_extension( mbedtls_asn1_named_data **head, const char *oid, size_t oid_len, 351 const char *oid, size_t oid_len,
|
A D | x509_crt.h | 132 mbedtls_x509_buf oid; /**< The object identifier. */ member 451 mbedtls_x509_buf const *oid, 1075 const char *oid, size_t oid_len,
|
A D | x509_csr.h | 246 const char *oid, size_t oid_len,
|
/mbedtls-development/library/ |
A D | x509_create.c | 37 const char *oid; /* String representation of OID of AttributeType, member 128 const char *oid = NULL; in mbedtls_x509_string_to_names() local 147 oid = attr_descr->oid; in mbedtls_x509_string_to_names() 167 mbedtls_asn1_store_named_data( head, oid, strlen( oid ), in mbedtls_x509_string_to_names() 213 if( ( cur = mbedtls_asn1_store_named_data( head, oid, oid_len, in mbedtls_x509_set_extension() 241 const char *oid = (const char*)cur_name->oid.p; in x509_write_name() local 242 size_t oid_len = cur_name->oid.len; in x509_write_name() 253 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_oid( p, start, oid, in x509_write_name() 290 const char *oid, size_t oid_len, in mbedtls_x509_write_sig() argument 337 ext->oid.len ) ); in x509_write_extension() [all …]
|
A D | oid.c | 61 const mbedtls_asn1_buf *oid ) \ 66 if( p == NULL || oid == NULL ) return( NULL ); \ 68 if( cur->asn1_len == oid->len && \ 69 memcmp( cur->asn1, oid->p, oid->len ) == 0 ) { \ 86 const TYPE_T *data = oid_ ## TYPE_NAME ## _from_asn1( oid ); \ 743 const mbedtls_asn1_buf *oid ) 754 if( oid->len > 0 ) 756 ret = mbedtls_snprintf( p, n, "%d.%d", oid->p[0] / 40, oid->p[0] % 40 ); 761 for( i = 1; i < oid->len; i++ ) 768 value += oid->p[i] & 0x7F; [all …]
|
A D | asn1write.c | 178 const char *oid, size_t oid_len ) in mbedtls_asn1_write_oid() argument 192 const char *oid, size_t oid_len, in mbedtls_asn1_write_algorithm_identifier() argument 400 if( list->oid.len == len && in asn1_find_named_data() 401 memcmp( list->oid.p, oid, len ) == 0 ) in asn1_find_named_data() 414 const char *oid, size_t oid_len, in mbedtls_asn1_store_named_data() argument 420 if( ( cur = asn1_find_named_data( *head, oid, oid_len ) ) == NULL ) in mbedtls_asn1_store_named_data() 429 cur->oid.len = oid_len; in mbedtls_asn1_store_named_data() 430 cur->oid.p = mbedtls_calloc( 1, oid_len ); in mbedtls_asn1_store_named_data() 431 if( cur->oid.p == NULL ) in mbedtls_asn1_store_named_data() 437 memcpy( cur->oid.p, oid, oid_len ); in mbedtls_asn1_store_named_data() [all …]
|
A D | pkwrite.c | 144 const char *oid; in pk_write_ec_param() local 147 if( ( ret = mbedtls_oid_get_oid_by_ec_grp( ec->grp.id, &oid, &oid_len ) ) != 0 ) in pk_write_ec_param() 150 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_oid( p, start, oid, oid_len ) ); in pk_write_ec_param() 231 const char *oid; in mbedtls_pk_write_pubkey_der() local 283 ret = mbedtls_psa_get_ecc_oid_from_id( curve, bits, &oid, &oid_len ); in mbedtls_pk_write_pubkey_der() 290 oid, oid_len ) ); in mbedtls_pk_write_pubkey_der() 297 if( ( ret = mbedtls_oid_get_oid_by_pk_alg( pk_type, &oid, in mbedtls_pk_write_pubkey_der() 303 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_algorithm_identifier( &c, buf, oid, oid_len, in mbedtls_pk_write_pubkey_der()
|
A D | asn1parse.c | 446 mbedtls_free( cur->oid.p ); in mbedtls_asn1_free_named_data() 465 const char *oid, size_t len ) in mbedtls_asn1_find_named_data() argument 469 if( list->oid.len == len && in mbedtls_asn1_find_named_data() 470 memcmp( list->oid.p, oid, len ) == 0 ) in mbedtls_asn1_find_named_data()
|
A D | x509.c | 352 mbedtls_x509_buf *oid; in x509_get_attr_type_value() local 365 oid = &cur->oid; in x509_get_attr_type_value() 366 oid->tag = **p; in x509_get_attr_type_value() 368 if( ( ret = mbedtls_asn1_get_tag( p, end, &oid->len, MBEDTLS_ASN1_OID ) ) != 0 ) in x509_get_attr_type_value() 371 oid->p = *p; in x509_get_attr_type_value() 372 *p += oid->len; in x509_get_attr_type_value() 758 if( !name->oid.p ) in mbedtls_x509_dn_gets() 770 ret = mbedtls_oid_get_attr_short_name( &name->oid, &short_name ); in mbedtls_x509_dn_gets()
|
A D | x509_crt.c | 358 if( a->oid.tag != b->oid.tag || in x509_name_cmp() 359 a->oid.len != b->oid.len || in x509_name_cmp() 360 memcmp( a->oid.p, b->oid.p, b->oid.len ) != 0 ) in x509_name_cmp() 1753 other_name->value.hardware_module_name.oid.tag = MBEDTLS_ASN1_OID; in x509_get_other_name() 1754 other_name->value.hardware_module_name.oid.p = p; in x509_get_other_name() 1755 other_name->value.hardware_module_name.oid.len = len; in x509_get_other_name() 1878 &other_name->value.hardware_module_name.oid ) != 0 ) in x509_info_subject_alt_name() 1885 … ret = mbedtls_oid_get_numeric_string( p, n, &other_name->value.hardware_module_name.oid ); in x509_info_subject_alt_name() 3044 if( MBEDTLS_OID_CMP( MBEDTLS_OID_AT_CN, &name->oid ) == 0 && in x509_crt_verify_name()
|
A D | x509write_csr.c | 85 const char *oid, size_t oid_len, in mbedtls_x509write_csr_set_extension() argument 89 return mbedtls_x509_set_extension( &ctx->extensions, oid, oid_len, in mbedtls_x509write_csr_set_extension()
|
A D | x509write_crt.c | 127 const char *oid, size_t oid_len, in mbedtls_x509write_crt_set_extension() argument 131 return( mbedtls_x509_set_extension( &ctx->extensions, oid, oid_len, in mbedtls_x509write_crt_set_extension()
|
A D | Makefile | 107 oid.o \
|
/mbedtls-development/scripts/data_files/ |
A D | query_config.fmt | 65 #include "mbedtls/oid.h"
|