Home
last modified time | relevance | path

Searched refs:oid (Results 1 – 25 of 25) sorted by relevance

/net-tools-2.7.6/mbedtls-2.4.0/library/
Dx509_create.c39 const char*oid; member
86 return( cur->oid ); in x509_at_oid_from_name()
94 const char *oid = NULL; in mbedtls_x509_string_to_names() local
106 if( ( oid = x509_at_oid_from_name( s, c - s ) ) == NULL ) in mbedtls_x509_string_to_names()
130 if( mbedtls_asn1_store_named_data( head, oid, strlen( oid ), in mbedtls_x509_string_to_names()
166 int mbedtls_x509_set_extension( mbedtls_asn1_named_data **head, const char *oid, size_t oid_len, in mbedtls_x509_set_extension() argument
171 if( ( cur = mbedtls_asn1_store_named_data( head, oid, oid_len, in mbedtls_x509_set_extension()
196 const char *oid, size_t oid_len, in x509_write_name() argument
205 memcmp( oid, MBEDTLS_OID_PKCS9_EMAIL, oid_len ) == 0 ) in x509_write_name()
220 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_oid( p, start, oid, oid_len ) ); in x509_write_name()
[all …]
Doid.c58 static const TYPE_T * oid_ ## NAME ## _from_asn1( const mbedtls_asn1_buf *oid ) \
62 if( p == NULL || oid == NULL ) return( NULL ); \
64 if( cur->asn1_len == oid->len && \
65 memcmp( cur->asn1, oid->p, oid->len ) == 0 ) { \
79 int FN_NAME( const mbedtls_asn1_buf *oid, ATTR1_TYPE * ATTR1 ) \
81 const TYPE_T *data = oid_ ## TYPE_NAME ## _from_asn1( oid ); \
92 int FN_NAME( const mbedtls_asn1_buf *oid, ATTR1_TYPE * ATTR1 ) \
94 const TYPE_T *data = oid_ ## TYPE_NAME ## _from_asn1( oid ); \
106 int FN_NAME( const mbedtls_asn1_buf *oid, ATTR1_TYPE * ATTR1, ATTR2_TYPE * ATTR2 ) \
108 const TYPE_T *data = oid_ ## TYPE_NAME ## _from_asn1( oid ); \
[all …]
Dasn1write.c179 const char *oid, size_t oid_len ) in mbedtls_asn1_write_oid() argument
185 (const unsigned char *) oid, oid_len ) ); in mbedtls_asn1_write_oid()
193 const char *oid, size_t oid_len, in mbedtls_asn1_write_algorithm_identifier() argument
204 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_oid( p, start, oid, oid_len ) ); in mbedtls_asn1_write_algorithm_identifier()
332 const char *oid, size_t oid_len, in mbedtls_asn1_store_named_data() argument
338 if( ( cur = mbedtls_asn1_find_named_data( *head, oid, oid_len ) ) == NULL ) in mbedtls_asn1_store_named_data()
347 cur->oid.len = oid_len; in mbedtls_asn1_store_named_data()
348 cur->oid.p = mbedtls_calloc( 1, oid_len ); in mbedtls_asn1_store_named_data()
349 if( cur->oid.p == NULL ) in mbedtls_asn1_store_named_data()
355 memcpy( cur->oid.p, oid, oid_len ); in mbedtls_asn1_store_named_data()
[all …]
Dpkwrite.c118 const char *oid; in pk_write_ec_param() local
121 if( ( ret = mbedtls_oid_get_oid_by_ec_grp( ec->grp.id, &oid, &oid_len ) ) != 0 ) in pk_write_ec_param()
124 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_oid( p, start, oid, oid_len ) ); in pk_write_ec_param()
156 const char *oid; in mbedtls_pk_write_pubkey_der() local
177 &oid, &oid_len ) ) != 0 ) in mbedtls_pk_write_pubkey_der()
189 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_algorithm_identifier( &c, buf, oid, oid_len, in mbedtls_pk_write_pubkey_der()
Dasn1parse.c358 mbedtls_free( cur->oid.p ); in mbedtls_asn1_free_named_data()
377 const char *oid, size_t len ) in mbedtls_asn1_find_named_data() argument
381 if( list->oid.len == len && in mbedtls_asn1_find_named_data()
382 memcmp( list->oid.p, oid, len ) == 0 ) in mbedtls_asn1_find_named_data()
Dpkcs11.c176 const char *oid; in mbedtls_pkcs11_sign() local
190 if( mbedtls_oid_get_oid_by_md( md_alg, &oid, &oid_size ) != 0 ) in mbedtls_pkcs11_sign()
221 memcpy( p, oid, oid_size ); in mbedtls_pkcs11_sign()
Dx509.c362 mbedtls_x509_buf *oid; in x509_get_attr_type_value() local
373 oid = &cur->oid; in x509_get_attr_type_value()
374 oid->tag = **p; in x509_get_attr_type_value()
376 if( ( ret = mbedtls_asn1_get_tag( p, end, &oid->len, MBEDTLS_ASN1_OID ) ) != 0 ) in x509_get_attr_type_value()
379 oid->p = *p; in x509_get_attr_type_value()
380 *p += oid->len; in x509_get_attr_type_value()
724 if( !name->oid.p ) in mbedtls_x509_dn_gets()
736 ret = mbedtls_oid_get_attr_short_name( &name->oid, &short_name ); in mbedtls_x509_dn_gets()
Dx509write_csr.c81 const char *oid, size_t oid_len, in mbedtls_x509write_csr_set_extension() argument
84 return mbedtls_x509_set_extension( &ctx->extensions, oid, oid_len, in mbedtls_x509write_csr_set_extension()
Drsa.c1033 const char *oid = NULL; in mbedtls_rsa_rsassa_pkcs1_v15_sign() local
1052 if( mbedtls_oid_get_oid_by_md( md_alg, &oid, &oid_size ) != 0 ) in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1092 memcpy( p, oid, oid_size ); in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1343 mbedtls_asn1_buf oid; in mbedtls_rsa_rsassa_pkcs1_v15_verify() local
1408 if( ( ret = mbedtls_asn1_get_tag( &p, end, &oid.len, MBEDTLS_ASN1_OID ) ) != 0 ) in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1411 oid.p = p; in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1412 p += oid.len; in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1414 if( mbedtls_oid_get_md_alg( &oid, &msg_md_alg ) != 0 ) in mbedtls_rsa_rsassa_pkcs1_v15_verify()
Dx509_crt.c1825 if( a->oid.tag != b->oid.tag || in x509_name_cmp()
1826 a->oid.len != b->oid.len || in x509_name_cmp()
1827 memcmp( a->oid.p, b->oid.p, b->oid.len ) != 0 ) in x509_name_cmp()
2231 if( MBEDTLS_OID_CMP( MBEDTLS_OID_AT_CN, &name->oid ) == 0 ) in mbedtls_x509_crt_verify_with_profile()
Dx509write_crt.c130 const char *oid, size_t oid_len, in mbedtls_x509write_crt_set_extension() argument
134 return mbedtls_x509_set_extension( &ctx->extensions, oid, oid_len, in mbedtls_x509write_crt_set_extension()
DMakefile58 memory_buffer_alloc.o oid.o \
DCMakeLists.txt39 oid.c
/net-tools-2.7.6/mbedtls-2.4.0/include/mbedtls/
Doid.h400 int mbedtls_oid_get_numeric_string( char *buf, size_t size, const mbedtls_asn1_buf *oid );
411 int mbedtls_oid_get_x509_ext_type( const mbedtls_asn1_buf *oid, int *ext_type );
423 int mbedtls_oid_get_attr_short_name( const mbedtls_asn1_buf *oid, const char **short_name );
433 int mbedtls_oid_get_pk_alg( const mbedtls_asn1_buf *oid, mbedtls_pk_type_t *pk_alg );
445 const char **oid, size_t *olen );
456 int mbedtls_oid_get_ec_grp( const mbedtls_asn1_buf *oid, mbedtls_ecp_group_id *grp_id );
468 const char **oid, size_t *olen );
481 int mbedtls_oid_get_sig_alg( const mbedtls_asn1_buf *oid,
492 int mbedtls_oid_get_sig_alg_desc( const mbedtls_asn1_buf *oid, const char **desc );
505 const char **oid, size_t *olen );
[all …]
Dasn1write.h111 const char *oid, size_t oid_len );
127 const char *oid, size_t oid_len,
231 const char *oid, size_t oid_len,
Dasn1.h152 mbedtls_asn1_buf oid; /**< The object identifier. */ member
321 const char *oid, size_t len );
Dx509.h307 int mbedtls_x509_set_extension( mbedtls_asn1_named_data **head, const char *oid, size_t oid_len,
315 const char *oid, size_t oid_len,
Dx509_csr.h235 const char *oid, size_t oid_len,
Dx509_crt.h530 const char *oid, size_t oid_len,
/net-tools-2.7.6/mbedtls-2.4.0/tests/suites/
Dtest_suite_x509parse.function7 #include "mbedtls/oid.h"
505 mbedtls_x509_buf oid;
512 oid.tag = MBEDTLS_ASN1_OID;
513 oid.len = unhexify( buf, oid_str );
514 oid.p = buf;
516 ret = mbedtls_oid_get_extended_key_usage( &oid, &desc );
535 mbedtls_x509_buf oid;
542 oid.tag = MBEDTLS_ASN1_OID;
543 oid.len = unhexify( oid_buf, oid_str );
544 oid.p = oid_buf;
[all …]
Dtest_suite_pkwrite.function4 #include "mbedtls/oid.h"
Dtest_suite_pkparse.function4 #include "mbedtls/oid.h"
Dtest_suite_x509write.function5 #include "mbedtls/oid.h"
Dtest_suite_pkcs5.data101 PBES2 Decrypt (bad enc_scheme_alg: unknown oid)
Dtest_suite_x509parse.data821 X509 Certificate ASN1 (TBSCertificate, correct serial, no alg oid)
824 X509 Certificate ASN1 (TBSCertificate, alg oid no data in sequence)
869 X509 Certificate ASN1 (TBSCertificate, issuer no oid data)