/mbedtls-latest/scripts/ |
D | config.py | 26 * name: the symbol name ('MBEDTLS_xxx'). 29 * active: True if name is defined, False if a #define for name is 31 * section: the name of the section that contains this symbol. 34 def __init__(self, active, name, value='', section=None): argument 36 self.name = name 48 * `name in config` is `True` if the symbol `name` is active, `False` 49 otherwise (whether `name` is inactive or not known). 50 * `config[name]` is the value of the macro `name`. If `name` is inactive, 51 raise `KeyError` (even if `name` is known). 52 * `config[name] = value` sets the value associated to `name`. `name` [all …]
|
D | ecp_comb_table.py | 28 Replace the <curve> in the above with the name of the curve you want to add.""" 39 static void dump_mpi_initialize( const char *name, const mbedtls_mpi *d ) 47 printf("static const mbedtls_mpi_uint %s[] = {\n", name); 57 char name[128]; 62 snprintf( name, sizeof(name), "%s_T_%zu_X", CURVE_NAME, i ); 63 dump_mpi_initialize( name, &grp->T[i].X ); 65 snprintf( name, sizeof(name), "%s_T_%zu_Y", CURVE_NAME, i ); 66 dump_mpi_initialize( name, &grp->T[i].Y ); 135 while ( info->name != NULL ) { 138 printf( " %s", info->name );
|
D | generate_query_config.pl | 75 my $name = $2; 78 next if $name =~ /$excluded_re/; 81 #if defined($name) 82 if( strcmp( "$name", config ) == 0 ) 84 MACRO_EXPANSION_TO_STR( $name ); 87 #endif /* $name */ 92 #if defined($name) 93 OUTPUT_MACRO_NAME_VALUE($name); 94 #endif /* $name */
|
D | generate_ssl_debug_helpers.py | 128 [typedef] enum [prefix name] { [body] } [suffix name]; 207 const char *{name}_str( {prototype} in ) 217 name=self._name, 236 sig_alg_pattern = re.compile(r'#define\s+(?P<name>MBEDTLS_TLS1_3_SIG_\w+)\s+' + 262 name = m.groupdict()['name'] 263 return_val = name[len('MBEDTLS_TLS1_3_SIG_'):].lower() 265 ' case {}:\n return "{}";'.format(name, return_val)) 295 named_group_pattern = re.compile(r'#define\s+(?P<name>MBEDTLS_SSL_IANA_TLS_GROUP_\w+)\s+' + 321 name = m.groupdict()['name'] 322 iana_name = name[len('MBEDTLS_SSL_IANA_TLS_GROUP_'):].lower() [all …]
|
D | generate_psa_constants.py | 218 def _make_return_case(name): argument 219 return 'case %(name)s: return "%(name)s";' % {'name': name} 222 def _make_append_case(name): argument 223 template = ('case %(name)s: ' 224 'append(&buffer, buffer_size, &required_size, "%(name)s", %(length)d); ' 226 return template % {'name': name, 'length': len(name)}
|
D | memory.sh | 42 # usage: do_config <name> <unset-list> <server-args> 45 NAME=$1 50 echo "config-$NAME:" 51 cp configs/config-$NAME.h $CONFIG_H 94 mv massif.out.* massif-$NAME.$$
|
/mbedtls-latest/programs/test/ |
D | metatest.c | 79 static void meta_test_fail(const char *name) in meta_test_fail() argument 81 (void) name; in meta_test_fail() 85 static void meta_test_not_equal(const char *name) in meta_test_not_equal() argument 90 (void) name; in meta_test_not_equal() 97 static void meta_test_not_le_s(const char *name) in meta_test_not_le_s() argument 102 (void) name; in meta_test_not_le_s() 109 static void meta_test_not_le_u(const char *name) in meta_test_not_le_u() argument 114 (void) name; in meta_test_not_le_u() 125 static void null_pointer_dereference(const char *name) in null_pointer_dereference() argument 127 (void) name; in null_pointer_dereference() [all …]
|
D | selftest.c | 268 const char *name; member 440 #define CHECK_PADDING_SIGNED(TYPE, NAME) \ in main() argument 446 (int16_t) NAME ## _MAX != 0x7FFF) || \ in main() 448 (int32_t) NAME ## _MAX != 0x7FFFFFFF) || \ in main() 450 (int64_t) NAME ## _MAX != 0x7FFFFFFFFFFFFFFF)) \ in main() 463 #define CHECK_PADDING_UNSIGNED(TYPE, NAME) \ in main() argument 467 (uint16_t) NAME ## _MAX != 0xFFFF) || \ in main() 469 (uint32_t) NAME ## _MAX != 0xFFFFFFFF) || \ in main() 471 (uint64_t) NAME ## _MAX != 0xFFFFFFFFFFFFFFFF)) \ in main() 526 for (test = selftests; test->name != NULL; test++) { in main() [all …]
|
/mbedtls-latest/tests/suites/ |
D | test_suite_x509parse.data | 3 …n \: 3\nserial number \: 01\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\ns… 7 …n \: 3\nserial number \: 01\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\ns… 11 …n \: 3\nserial number \: 02\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\ns… 15 …n \: 3\nserial number \: 02\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\ns… 19 …n \: 3\nserial number \: 03\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\ns… 23 …n \: 3\nserial number \: 03\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\ns… 27 …n \: 3\nserial number \: 06\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\ns… 31 …n \: 3\nserial number \: 07\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\ns… 35 …n \: 3\nserial number \: 08\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\ns… 39 …n \: 3\nserial number \: 09\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\ns… [all …]
|
/mbedtls-latest/tests/scripts/ |
D | depends.py | 16 - domain name, can be used to run only specific tests via command-line; 99 cmd is a list of strings: a command name and its arguments.""" 156 def __init__(self, name, config_settings, commands): argument 164 command name and its arguments and is passed to subprocess.call with 166 self.name = name 176 log_line(self.name + ' PASSED', color=colors.green) 178 log_line(self.name + ' FAILED', color=colors.red) 180 log_line('starting ' + self.name, color=colors.cyan) 204 env['MBEDTLS_TEST_CONFIGURATION'] += '-' + self.name 390 # Find hash modules by name. [all …]
|
D | check_names.py | 67 * name: the match itself. 69 def __init__(self, filename, line, line_no, pos, name): argument 75 self.name = name 133 * symbol_name: the name of the symbol. 166 .format(self.match.filename, self.match.line_no, self.match.name) 175 self.match.name, 187 * match: the Match object of the MBED|PSA name in question. 196 .format(self.match.filename, self.match.line_no, self.match.name) 204 .format(self.match.filename, self.match.line_no, self.match.name) 279 identifiers_justname = [x.name for x in identifiers] [all …]
|
D | gen_gcm_decrypt.pl | 17 my $name = shift; 23 ($val) = ($line =~ /\[$name\s\=\s(\w+)\]/); 32 my $name = shift; 42 ($val) = ($line =~ /^$name = (\w+)/); 49 my $name = shift; 59 ($val) = ($line =~ /^$name = (\w+)/) if ($line =~ /=/);
|
/mbedtls-latest/programs/psa/ |
D | psa_constant_names.c | 114 const char *name = get_name(alg); in append_with_alg() local 115 if (name != NULL) { in append_with_alg() 117 name, strlen(name)); in append_with_alg() 129 const char *name = psa_strerror(status); in psa_snprint_status() local 130 if (name == NULL) { in psa_snprint_status() 133 size_t length = strlen(name); in psa_snprint_status() 135 memcpy(buffer, name, length + 1); in psa_snprint_status() 146 const char *name = psa_ecc_family_name(curve); in psa_snprint_ecc_curve() local 147 if (name == NULL) { in psa_snprint_ecc_curve() 150 size_t length = strlen(name); in psa_snprint_ecc_curve() [all …]
|
/mbedtls-latest/include/mbedtls/ |
D | x509.h | 41 * \name X509 Error codes 56 /** The name tag or value is invalid. */ 84 /** \} name X509 Error codes */ 87 * \name X509 Verify codes 93 #define MBEDTLS_X509_BADCERT_CN_MISMATCH 0x04 /**< The certificate Common Name (CN) does n… 112 /** \} name X509 Verify codes */ 116 * X.509 v3 Subject Alternative Name types. 121 * directoryName [4] Name, 209 * \name Structures for parsing X.509 certificates, CRLs and CSRs 286 * A structure for holding the parsed Subject Alternative Name, [all …]
|
D | ssl_ticket.h | 42 #define MBEDTLS_SSL_TICKET_KEY_NAME_BYTES 4 /*!< key name length in bytes */ 48 unsigned char MBEDTLS_PRIVATE(name)[MBEDTLS_SSL_TICKET_KEY_NAME_BYTES]; 139 * \param name Session ticket encryption key name 140 * \param nlength Session ticket encryption key name length in bytes 146 * \note \c name and \c k are recommended to be cryptographically 149 * \note \c nlength must match sizeof( ctx->name ) 168 const unsigned char *name, size_t nlength,
|
/mbedtls-latest/library/ |
D | x509.c | 471 * Name ::= CHOICE { -- only one possibility for now -- 809 * Store the name in printable form into buf; no more 820 const mbedtls_x509_name *name; in mbedtls_x509_dn_gets() local 828 name = dn; in mbedtls_x509_dn_gets() 832 while (name != NULL) { in mbedtls_x509_dn_gets() 833 if (!name->oid.p) { in mbedtls_x509_dn_gets() 834 name = name->next; in mbedtls_x509_dn_gets() 838 if (name != dn) { in mbedtls_x509_dn_gets() 843 print_hexstring = (name->val.tag != MBEDTLS_ASN1_UTF8_STRING) && in mbedtls_x509_dn_gets() 844 (name->val.tag != MBEDTLS_ASN1_PRINTABLE_STRING) && in mbedtls_x509_dn_gets() [all …]
|
D | debug_internal.h | 43 * \param text the name of the function that returned the error 62 * \param text a name or label for the buffer being dumped. Normally the 63 * variable or buffer name 84 * \param text a name or label for the MPI being output. Normally the 85 * variable name 106 * \param text a name or label for the ECP point being output. Normally the 107 * variable name 128 * \param text a name or label for the certificate being output
|
D | ssl_ticket.c | 83 if ((ret = ctx->f_rng(ctx->p_rng, key->name, sizeof(key->name))) != 0) { in ssl_ticket_gen_key() 155 const unsigned char *name, size_t nlength, in mbedtls_ssl_ticket_rotate() argument 202 memcpy(key->name, name, TICKET_KEY_NAME_BYTES); in mbedtls_ssl_ticket_rotate() 343 memcpy(key_name, key->name, TICKET_KEY_NAME_BYTES); in mbedtls_ssl_ticket_write() 371 /* Additional data: key name, IV and length */ in mbedtls_ssl_ticket_write() 398 * Select key based on name 402 const unsigned char name[4]) in ssl_ticket_select_key() 407 if (memcmp(name, ctx->keys[i].name, 4) == 0) { in ssl_ticket_select_key() 481 /* Additional data: key name, IV and length */ in mbedtls_ssl_ticket_parse()
|
D | x509_create.c | 26 const char *name; /* String representation of AttributeType, e.g. member 28 size_t name_len; /* Length of 'name', without trailing 0 byte. */ 101 static const x509_attr_descriptor_t *x509_attr_descr_from_name(const char *name, size_t name_len) in x509_attr_descr_from_name() argument 105 for (cur = x509_attrs; cur->name != NULL; cur++) { in x509_attr_descr_from_name() 107 strncmp(cur->name, name, name_len) == 0) { in x509_attr_descr_from_name() 112 if (cur->name == NULL) { in x509_attr_descr_from_name() 281 int mbedtls_x509_string_to_names(mbedtls_asn1_named_data **head, const char *name) in mbedtls_x509_string_to_names() argument 285 const char *s = name, *c = s; in mbedtls_x509_string_to_names() 366 /* Successfully parsed one name, update ret to success */ in mbedtls_x509_string_to_names() 420 const unsigned char *name = cur_name->val.p; in x509_write_name() local [all …]
|
D | debug.c | 322 char name[16]; in debug_print_pk() local 337 mbedtls_snprintf(name, sizeof(name), "%s%s", text, items[i].name); in debug_print_pk() 338 name[sizeof(name) - 1] = '\0'; in debug_print_pk() 342 mbedtls_debug_print_mpi(ssl, level, file, line, name, items[i].value); in debug_print_pk() 347 mbedtls_debug_print_ecp(ssl, level, file, line, name, items[i].value); in debug_print_pk() 352 mbedtls_debug_print_psa_ec(ssl, level, file, line, name, items[i].value); in debug_print_pk()
|
/mbedtls-latest/docs/architecture/ |
D | tls13-support.md | 184 TLS 1.3 specification should contain as far as possible the field name as 185 it is in the specification. If the field name is "too long" and we prefer 199 - Use `<vector name>_len` for the name of a variable used to compute the 200 length in bytes of the vector, where <vector name> is the name of the 203 - Use `p_<vector_name>_len` for the name of a variable intended to hold 206 - Use `<vector_name>` for the name of a variable intended to hold the 209 - Use `<vector_name>_end` for the name of a variable intended to hold 257 name `p` has been chosen as it was already widely used in TLS code. 291 the pointer name not appended to the pointer type: 308 function to a longer name, or indenting a block more), avoid rewrapping
|
/mbedtls-latest/docs/architecture/psa-migration/ |
D | syms.sh | 16 # - if only 1 argument is used (which is the name of the used config, 33 # Check if the provided name refers to a module or library and return the 46 NAME="$1" 47 FILE=$(get_file_with_extension "library/${NAME}") 48 PREF="${CONFIG}-$NAME"
|
/mbedtls-latest/ |
D | .pylintrc | 7 # [invalid-name] 20 # [invalid-name] 25 # [invalid-name] 33 # [invalid-name] 74 # Allow unused variables if their name starts with an underscore.
|
/mbedtls-latest/configs/ext/ |
D | tfm_mbedcrypto_config_profile_medium.h | 39 * \name SECTION: System support 89 /* \} name SECTION: System support */ 92 * \name SECTION: mbed TLS feature support 180 * proper name (defined in MBEDTLS_PLATFORM_STD_NV_SEED_FILE) and at 246 /* \} name SECTION: mbed TLS feature support */ 249 * \name SECTION: mbed TLS modules 416 /* \} name SECTION: mbed TLS modules */ 419 * \name SECTION: General configuration options 498 /** \} name SECTION: General configuration options */ 501 * \name SECTION: Module configuration options [all …]
|
/mbedtls-latest/tests/ |
D | context-info.sh | 39 # Print test name <name> 45 # Print header to the test output file <test name> <file path> <test command> 51 echo "* Test name: $1" >> $2 109 # Usage: run_test <name> <input file with b64 code> [ -arg <extra arguments for tested program> ] [… 235 -u "issuer name.* C=NL, O=PolarSSL, CN=PolarSSL Test CA$" \ 236 -u "subject name.* C=NL, O=PolarSSL, CN=localhost$" \ 364 -u "issuer name.* CN=ca$" \ 365 -u "subject name.* L=160001, OU=acc1, CN=device01$" \
|