Home
last modified time | relevance | path

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

1234

/mbedtls-development/scripts/
A Dconfig.py42 self.name = name
72 return name in self.settings and self.settings[name].active
76 return all(self.__contains__(name) for name in names)
80 return any(self.__contains__(name) for name in names)
82 def known(self, name): argument
125 self.settings[name] = Setting(True, name, value=value)
127 def unset(self, name): argument
273 return include_in_full(name) and keep_in_baremetal(name)
281 if name in [
351 self.templates.append((name, '', '#define ' + name + ' '))
[all …]
A Dgenerate_query_config.pl74 my $name = $2;
77 next if $name =~ /$excluded_re/;
79 $config_check .= "#if defined($name)\n";
80 $config_check .= " if( strcmp( \"$name\", config ) == 0 )\n";
82 $config_check .= " MACRO_EXPANSION_TO_STR( $name );\n";
85 $config_check .= "#endif /* $name */\n";
A Dgenerate_psa_constants.py229 def _make_return_case(name): argument
230 return 'case %(name)s: return "%(name)s";' % {'name': name}
233 def _make_append_case(name): argument
237 return template % {'name': name, 'length': len(name)}
A Dgenerate_errors.pl84 my ($before, $name, $value, $after) = ($1, $2, $3, $4);
89 die "Description neither before nor after $name in $file\n"
91 die "Description both before and after $name in $file\n"
97 push @matches, [$name, $value, $description];
/mbedtls-development/scripts/mbedtls_dev/
A Dmacro_collector.py123 if name.endswith('_BASE') or name.endswith('_NONE'):
127 return name.endswith('_FLAG') or name.endswith('_MASK')
170 yield name
214 for name in names
311 elif (name.startswith('PSA_ERROR_') or name == 'PSA_SUCCESS') \
317 self.key_types_from_curve[name] = name[:13] + 'IS_' + name[13:]
319 self.key_types_from_group[name] = name[:13] + 'IS_' + name[13:]
332 self.algorithms_from_hash[name] = self.algorithm_tester(name)
462 name = m.group(1)
471 dest.add(name)
[all …]
A Dcrypto_knowledge.py29 def __init__(self, name: str, params: Optional[Iterable[str]] = None):
40 self.name = name.strip()
47 if '(' in self.name:
48 m = re.match(r'(\w+)\s*\((.*)\)\Z', self.name)
50 self.name = m.group(1)
58 assert re.match(r'PSA_KEY_TYPE_\w+\Z', self.name)
60 self.expression = self.name
65 self.private_type = re.sub(r'_PUBLIC_KEY\Z', r'_KEY_PAIR', self.name)
135 if self.name == 'PSA_KEY_TYPE_DES':
155 return re.match(self.KEY_TYPE_FOR_SIGNATURE[usage], self.name) is not None
/mbedtls-development/tests/scripts/
A Dgenerate_test_code.py321 '''.format(name=name,
328 def gen_dispatch(name, dependencies): argument
349 '''.format(preprocessor_check=preprocessor_check, name=name)
353 '''.format(name=name)
551 name = match.group('func_name')
567 code = code.replace(name, 'test_' + name, 1)
568 name = 'test_' + name
675 name = ''
688 (data_f.name, data_f.line_no, name))
693 name = line
[all …]
A Dgen_gcm_decrypt.pl29 my $name = shift;
35 ($val) = ($line =~ /\[$name\s\=\s(\w+)\]/);
44 my $name = shift;
54 ($val) = ($line =~ /^$name = (\w+)/);
61 my $name = shift;
71 ($val) = ($line =~ /^$name = (\w+)/) if ($line =~ /=/);
A Dcheck_names.py82 self.name = name
182 self.match.name,
289 if macro.name not in identifiers_justname:
402 name.span(0),
403 name.group(0)))
731 if symbol == identifier_match.name:
779 match.name
792 found = name_match.name.replace(
802 def output_check_result(self, name, problems): argument
812 self.log.info("{}: FAIL\n".format(name))
[all …]
A Dgen_gcm_encrypt.pl29 my $name = shift;
35 ($val) = ($line =~ /\[$name\s\=\s(\w+)\]/);
44 my $name = shift;
54 ($val) = ($line =~ /^$name = (\w+)/);
A Dgen_ctr_drbg.pl30 my $name = shift;
34 ($val) = ($line =~ /\[$name\s\=\s(\w+)\]/);
41 my $name = shift;
51 ($val) = ($line =~ /^$name = (\w+)/);
A Dgenerate_psa_tests.py40 def psa_want_symbol(name: str) -> str:
42 if name.startswith('PSA_'):
43 return name[:4] + 'WANT_' + name[4:]
82 return sorted(psa_want_symbol(name) for name in used)
180 if kt.name in self.ALWAYS_SUPPORTED:
190 if kt.name.endswith('_PUBLIC_KEY'):
208 if not kt.name.endswith('_PUBLIC_KEY'):
278 if kt.name.endswith('_PUBLIC_KEY'):
712 value = getattr(options, name, None)
758 for name in sorted(generator.TARGETS):
[all …]
A Dpsa_collect_statuses.py68 for value, name in zip(values, output.rstrip().split('\n')):
69 self.status_names[value] = name
79 for name in sorted(names):
80 sys.stdout.write('{} {}\n'.format(function, name))
A Dlist_internal_identifiers.py50 result.sort(key=lambda x: x.name)
52 identifiers = ["{}\n".format(match.name) for match in result]
/mbedtls-development/programs/psa/
A Dpsa_constant_names.c124 const char *name = get_name(alg); in append_with_alg() local
125 if (name != NULL) { in append_with_alg()
127 name, strlen(name)); in append_with_alg()
139 const char *name = psa_strerror(status); in psa_snprint_status() local
140 if (name == NULL) { in psa_snprint_status()
143 size_t length = strlen(name); in psa_snprint_status()
145 memcpy(buffer, name, length + 1); in psa_snprint_status()
157 if (name == NULL) { in psa_snprint_ecc_curve()
160 size_t length = strlen(name); in psa_snprint_ecc_curve()
174 if (name == NULL) { in psa_snprint_dh_group()
[all …]
/mbedtls-development/tests/data_files/
A Dprint_c.pl34 my $name = shift @ARGV;
43 print "const char $name\[\] = $pp_name;\n";
45 print "const char $name\[\] =";
/mbedtls-development/library/
A Dx509_create.c34 const char *name; /* String representation of AttributeType, e.g. member
108 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
112 for( cur = x509_attrs; cur->name != NULL; cur++ ) in x509_attr_descr_from_name()
114 strncmp( cur->name, name, name_len ) == 0 ) in x509_attr_descr_from_name()
117 if ( cur->name == NULL ) in x509_attr_descr_from_name()
123 int mbedtls_x509_string_to_names( mbedtls_asn1_named_data **head, const char *name ) in mbedtls_x509_string_to_names() argument
126 const char *s = name, *c = s; in mbedtls_x509_string_to_names()
243 const unsigned char *name = cur_name->val.p; in x509_write_name() local
249 (const char *) name, in x509_write_name()
A Dx509.c746 const mbedtls_x509_name *name; in mbedtls_x509_dn_gets() local
752 name = dn; in mbedtls_x509_dn_gets()
756 while( name != NULL ) in mbedtls_x509_dn_gets()
758 if( !name->oid.p ) in mbedtls_x509_dn_gets()
760 name = name->next; in mbedtls_x509_dn_gets()
764 if( name != dn ) in mbedtls_x509_dn_gets()
778 for( i = 0; i < name->val.len; i++ ) in mbedtls_x509_dn_gets()
783 c = name->val.p[i]; in mbedtls_x509_dn_gets()
792 merge = name->next_merged; in mbedtls_x509_dn_gets()
793 name = name->next; in mbedtls_x509_dn_gets()
[all …]
A Dentropy_poll.c140 int name[2]; in sysctl_arnd_wrapper() local
143 name[0] = CTL_KERN; in sysctl_arnd_wrapper()
144 name[1] = KERN_ARND; in sysctl_arnd_wrapper()
149 if( sysctl(name, 2, buf, &len, NULL, 0) == -1 ) in sysctl_arnd_wrapper()
A Ddebug.c282 char name[16]; in debug_print_pk() local
298 mbedtls_snprintf( name, sizeof( name ), "%s%s", text, items[i].name ); in debug_print_pk()
299 name[sizeof( name ) - 1] = '\0'; in debug_print_pk()
302 mbedtls_debug_print_mpi( ssl, level, file, line, name, items[i].value ); in debug_print_pk()
306 mbedtls_debug_print_ecp( ssl, level, file, line, name, items[i].value ); in debug_print_pk()
A Dssl_ticket.c80 if( ( ret = ctx->f_rng( ctx->p_rng, key->name, sizeof( key->name ) ) ) != 0 ) in ssl_ticket_gen_key()
233 memcpy( key_name, key->name, TICKET_KEY_NAME_BYTES ); in mbedtls_ssl_ticket_write()
281 const unsigned char name[4] ) in ssl_ticket_select_key()
286 if( memcmp( name, ctx->keys[i].name, 4 ) == 0 ) in ssl_ticket_select_key()
/mbedtls-development/programs/test/
A Dselftest.c244 const char *name; member
402 for( test = selftests; test->name != NULL; test++ ) in main()
404 if( !strcmp( *argp, test->name ) ) in main()
414 if( test->name == NULL ) in main()
424 for( test = selftests; test->name != NULL; test++ ) in main()
431 if( !strcmp( *excluded, test->name ) ) in main()
437 mbedtls_printf( " Skip: %s\n", test->name ); in main()
/mbedtls-development/tests/suites/
A Dtest_suite_x509parse.data89 X509 CRT information EC, SHA256 Digest, hardware module name SAN
91name \: C=UK, O=Mbed TLS, CN=Mbed TLS othername SAN\nsubject name \: C=UK, O=Mbed TLS, …
111name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nsubject name \: C=NL, O=PolarSSL, CN=www…
115name \: C=UK, O=Mbed TLS, CN=Mbed TLS multiple othername SAN\nsubject name \: C=UK, O=M…
165 X509 CRT information Bitstring in subject name
169 X509 CRT information Non-ASCII string in issuer name and subject name
185 X509 SAN parsing, no subject alt name
189 X509 SAN parsing, unsupported otherName name
834 X509 CRT verification #90 (EE with same name as trusted root)
846 X509 CRT verification #92 (bad name, allowing callback)
[all …]
/mbedtls-development/
A D.travis.yml8 - name: basic checks and reference configurations
29 - name: full configuration
33 - name: Windows
62 name: "ARMmbed/mbedtls"
A D.pylintrc6 # [invalid-name]
19 # [invalid-name]
24 # [invalid-name]
32 # [invalid-name]
73 # Allow unused variables if their name starts with an underscore.

Completed in 33 milliseconds

1234