/mbedtls-3.6.0/scripts/ |
D | config.py | 34 def __init__(self, active, name, value='', section=None): argument 36 self.name = name 60 def __contains__(self, name): argument 66 return name in self.settings and self.settings[name].active 70 return all(self.__contains__(name) for name in names) 74 return any(self.__contains__(name) for name in names) 76 def known(self, name): argument 78 return name in self.settings 80 def __getitem__(self, name): argument 85 return self.settings[name].value [all …]
|
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_psa_constants.py | 217 def _make_return_case(name): argument 218 return 'case %(name)s: return "%(name)s";' % {'name': name} 221 def _make_append_case(name): argument 225 return template % {'name': name, 'length': len(name)}
|
D | generate_ssl_debug_helpers.py | 215 name=self._name, 260 name = m.groupdict()['name'] 261 return_val = name[len('MBEDTLS_TLS1_3_SIG_'):].lower() 263 ' case {}:\n return "{}";'.format(name, return_val)) 319 name = m.groupdict()['name'] 320 iana_name = name[len('MBEDTLS_SSL_IANA_TLS_GROUP_'):].lower() 321 translation_table.append(' case {}:\n return "{}";'.format(name, iana_name))
|
/mbedtls-3.6.0/scripts/mbedtls_dev/ |
D | macro_collector.py | 112 def is_internal_name(self, name: str) -> bool: 115 if name.endswith('_BASE') or name.endswith('_NONE'): 117 if '_CATEGORY_' in name: 119 return name.endswith('_FLAG') or name.endswith('_MASK') 139 def _format_arguments(name: str, arguments: Iterable[str]) -> str: 145 return name + '(' + ', '.join(arguments) + ')' 152 def distribute_arguments(self, name: str) -> Iterator[str]: 161 if name not in self.argspecs: 162 yield name 164 argspec = self.argspecs[name] [all …]
|
D | psa_information.py | 44 def psa_want_symbol(name: str) -> str: 46 if name.startswith('PSA_'): 47 return name[:4] + 'WANT_' + name[4:] 49 raise ValueError('Unable to determine the PSA_WANT_ symbol for ' + name) 86 return sorted(psa_want_symbol(name) for name in used)
|
D | test_data_generation.py | 170 def generate_target(self, name: str, *target_args) -> None: 176 test_cases = self.targets[name](*target_args) 177 self.write_test_data_file(name, test_cases) 206 for name in sorted(generator.targets): 207 print(generator.filename_for(name)) 211 print(';'.join(generator.filename_for(name) 212 for name in sorted(generator.targets)), end='')
|
D | crypto_knowledge.py | 71 def __init__(self, name: str, params: Optional[Iterable[str]] = None) -> None: 82 self.name = name.strip() 89 if '(' in self.name: 90 m = re.match(r'(\w+)\s*\((.*)\)\Z', self.name) 92 self.name = m.group(1) 100 assert re.match(r'PSA_KEY_TYPE_\w+\Z', self.name) 102 self.expression = self.name 107 m = re.match(r'PSA_KEY_TYPE_(\w+)', self.name) 112 self.private_type = re.sub(r'_PUBLIC_KEY\Z', r'_KEY_PAIR', self.name) 128 return self.name.endswith('_PUBLIC_KEY') [all …]
|
/mbedtls-3.6.0/tests/scripts/ |
D | generate_test_code.py | 263 def name(self): member in FileWrapper 267 return self._f.name 318 def gen_function_wrapper(name, local_vars, args_dispatch): argument 336 '''.format(name=name, 343 def gen_dispatch(name, dependencies): argument 364 '''.format(preprocessor_check=preprocessor_check, name=name) 368 '''.format(name=name) 382 headers = '#line %d "%s"\n' % (funcs_f.line_no + 1, funcs_f.name) 389 (funcs_f.name, end_regex)) 436 str(error) + " - %s:%d" % (funcs_f.name, funcs_f.line_no)) [all …]
|
D | check_names.py | 69 def __init__(self, filename, line, line_no, pos, name): argument 75 self.name = name 166 .format(self.match.filename, self.match.line_no, self.match.name) 175 self.match.name, 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] 283 if macro.name not in identifiers_justname: 430 for name in mbed_regex.finditer(line): 435 name.span(0), [all …]
|
D | depends.py | 156 def __init__(self, name, config_settings, commands): argument 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) 433 self.jobs[job.name] = job 435 def get_jobs(self, name): argument 438 if name in self.domains: 439 return sorted(self.domains[name].jobs, key=lambda job: job.name) 441 return [self.jobs[name]] [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 =~ /=/);
|
D | generate_pkcs7_tests.py | 26 def __init__(self, name, depends, func_call): argument 27 self.name = name 33 return "\n" + self.name + "\n" + self.depends + "\n" + self.func_call + "\n" 68 latest_test_num = float(tests[-1].name.split('#')[1]) 71 def add(self, name, func_call): argument 73 self.new_tests.append(Test(self.test_name + ": " + name + " #" + \
|
D | gen_gcm_encrypt.pl | 17 my $name = shift; 23 ($val) = ($line =~ /\[$name\s\=\s(\w+)\]/); 32 my $name = shift; 42 ($val) = ($line =~ /^$name = (\w+)/);
|
D | gen_ctr_drbg.pl | 18 my $name = shift; 22 ($val) = ($line =~ /\[$name\s\=\s(\w+)\]/); 29 my $name = shift; 39 ($val) = ($line =~ /^$name = (\w+)/);
|
/mbedtls-3.6.0/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-3.6.0/tests/data_files/ |
D | test_certs.h.jinja2 | 11 {% for mode, name, value in macros %} 14 /* BEGIN FILE string macro {{name}} {{value}} */ 15 #define {{name}}{{ '\\' | put_to_column(position=80-9-name|length)}} 25 /* BEGIN FILE binary macro {{name}} {{value}} */ 26 #define {{name}} {% raw -%} { {%- endraw %} {{ '\\' | put_to_column(position=80-11-name|length)}} 39 #define {{name}} "{{value}}"
|
D | print_c.pl | 22 my $name = shift @ARGV; 31 print "const char $name\[\] = $pp_name;\n"; 33 print "const char $name\[\] =";
|
/mbedtls-3.6.0/library/ |
D | x509.c | 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() 845 (name->val.tag != MBEDTLS_ASN1_IA5_STRING); in mbedtls_x509_dn_gets() 847 if ((ret = mbedtls_oid_get_attr_short_name(&name->oid, &short_name)) == 0) { in mbedtls_x509_dn_gets() [all …]
|
D | x509_create.c | 26 const char *name; /* String representation of AttributeType, e.g. member 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() 279 int mbedtls_x509_string_to_names(mbedtls_asn1_named_data **head, const char *name) in mbedtls_x509_string_to_names() argument 283 const char *s = name, *c = s; in mbedtls_x509_string_to_names() 418 const unsigned char *name = cur_name->val.p; in x509_write_name() local 424 (const char *) name, in x509_write_name()
|
D | ssl_ticket.c | 79 if ((ret = ctx->f_rng(ctx->p_rng, key->name, sizeof(key->name))) != 0) { in ssl_ticket_gen_key() 150 const unsigned char *name, size_t nlength, in mbedtls_ssl_ticket_rotate() argument 197 memcpy(key->name, name, TICKET_KEY_NAME_BYTES); in mbedtls_ssl_ticket_rotate() 336 memcpy(key_name, key->name, TICKET_KEY_NAME_BYTES); in mbedtls_ssl_ticket_write() 395 const unsigned char name[4]) in ssl_ticket_select_key() 400 if (memcmp(name, ctx->keys[i].name, 4) == 0) { in ssl_ticket_select_key()
|
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()
|
D | entropy_poll.c | 127 int name[2]; in sysctl_arnd_wrapper() local 130 name[0] = CTL_KERN; in sysctl_arnd_wrapper() 131 name[1] = KERN_ARND; in sysctl_arnd_wrapper() 135 if (sysctl(name, 2, buf, &len, NULL, 0) == -1) { in sysctl_arnd_wrapper()
|
/mbedtls-3.6.0/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-3.6.0/programs/test/ |
D | selftest.c | 267 const char *name; member 525 for (test = selftests; test->name != NULL; test++) { in main() 526 if (!strcmp(*argp, test->name)) { in main() 534 if (test->name == NULL) { in main() 541 for (test = selftests; test->name != NULL; test++) { in main() 545 if (!strcmp(*excluded, test->name)) { in main() 551 mbedtls_printf(" Skip: %s\n", test->name); in main()
|