/mbedtls-3.5.0/scripts/ |
D | config.py | 37 * name: the symbol name ('MBEDTLS_xxx'). 40 * active: True if name is defined, False if a #define for name is 42 * section: the name of the section that contains this symbol. 45 def __init__(self, active, name, value='', section=None): argument 47 self.name = name 59 * `name in config` is `True` if the symbol `name` is active, `False` 60 otherwise (whether `name` is inactive or not known). 61 * `config[name]` is the value of the macro `name`. If `name` is inactive, 62 raise `KeyError` (even if `name` is known). 63 * `config[name] = value` sets the value associated to `name`. `name` [all …]
|
D | generate_query_config.pl | 90 my $name = $2; 93 next if $name =~ /$excluded_re/; 96 #if defined($name) 97 if( strcmp( "$name", config ) == 0 ) 99 MACRO_EXPANSION_TO_STR( $name ); 102 #endif /* $name */ 107 #if defined($name) 108 OUTPUT_MACRO_NAME_VALUE($name); 109 #endif /* $name */
|
D | ecp_comb_table.py | 40 Replace the <curve> in the above with the name of the curve you want to add.""" 51 static void dump_mpi_initialize( const char *name, const mbedtls_mpi *d ) 59 printf("static const mbedtls_mpi_uint %s[] = {\n", name); 69 char name[128]; 74 snprintf( name, sizeof(name), "%s_T_%zu_X", CURVE_NAME, i ); 75 dump_mpi_initialize( name, &grp->T[i].X ); 77 snprintf( name, sizeof(name), "%s_T_%zu_Y", CURVE_NAME, i ); 78 dump_mpi_initialize( name, &grp->T[i].Y ); 147 while ( info->name != NULL ) { 150 printf( " %s", info->name );
|
D | generate_ssl_debug_helpers.py | 138 [typedef] enum [prefix name] { [body] } [suffix name]; 217 const char *{name}_str( {prototype} in ) 233 name=self._name, 252 sig_alg_pattern = re.compile(r'#define\s+(?P<name>MBEDTLS_TLS1_3_SIG_\w+)\s+' + 278 name = m.groupdict()['name'] 279 return_val = name[len('MBEDTLS_TLS1_3_SIG_'):].lower() 281 ' case {}:\n return "{}";'.format(name, return_val)) 311 named_group_pattern = re.compile(r'#define\s+(?P<name>MBEDTLS_SSL_IANA_TLS_GROUP_\w+)\s+' + 337 name = m.groupdict()['name'] 338 iana_name = name[len('MBEDTLS_SSL_IANA_TLS_GROUP_'):].lower() [all …]
|
D | generate_psa_constants.py | 229 def _make_return_case(name): argument 230 return 'case %(name)s: return "%(name)s";' % {'name': name} 233 def _make_append_case(name): argument 234 template = ('case %(name)s: ' 235 'append(&buffer, buffer_size, &required_size, "%(name)s", %(length)d); ' 237 return template % {'name': name, 'length': len(name)}
|
D | memory.sh | 54 # usage: do_config <name> <unset-list> <server-args> 57 NAME=$1 62 echo "config-$NAME:" 63 cp configs/config-$NAME.h $CONFIG_H 106 mv massif.out.* massif-$NAME.$$
|
/mbedtls-3.5.0/scripts/mbedtls_dev/ |
D | macro_collector.py | 33 # Dear Pylint, conventionally, a context manager class name is lowercase. 34 # pylint: disable=invalid-name,too-few-public-methods 49 snippet annotates the exception with the file name and line number. 108 # macro name -> list of argument names 110 # argument name -> list of values 123 def is_internal_name(self, name: str) -> bool: 126 if name.endswith('_BASE') or name.endswith('_NONE'): 128 if '_CATEGORY_' in name: 130 return name.endswith('_FLAG') or name.endswith('_MASK') 150 def _format_arguments(name: str, arguments: Iterable[str]) -> str: [all …]
|
D | test_data_generation.py | 36 T = TypeVar('T') #pylint: disable=invalid-name 49 test_name: A common name or description of the test function. This can 80 Creates a description of the test case, including a name for the test 165 """The location of the data file with the specified base name.""" 181 def generate_target(self, name: str, *target_args) -> None: 187 test_cases = self.targets[name](*target_args) 188 self.write_test_data_file(name, test_cases) 217 for name in sorted(generator.targets): 218 print(generator.filename_for(name)) 222 print(';'.join(generator.filename_for(name) [all …]
|
D | crypto_knowledge.py | 82 def __init__(self, name: str, params: Optional[Iterable[str]] = None) -> None: 86 `name` is a string 'PSA_KEY_TYPE_xxx' which is the name of a PSA key 90 in `name` as a string. 93 self.name = name.strip() 94 """The key type macro name (``PSA_KEY_TYPE_xxx``). 97 name of the macro, and the arguments are in `self.params`. 100 if '(' in self.name: 101 m = re.match(r'(\w+)\s*\((.*)\)\Z', self.name) 103 self.name = m.group(1) 111 assert re.match(r'PSA_KEY_TYPE_\w+\Z', self.name) [all …]
|
/mbedtls-3.5.0/tests/scripts/ |
D | generate_test_code.py | 39 test name 298 def gen_function_wrapper(name, local_vars, args_dispatch): argument 303 :param name: Test function name 311 void {name}_wrapper( void ** params ) 314 {name}( {args} ); 316 '''.format(name=name, 323 def gen_dispatch(name, dependencies): argument 332 :param name: Test function name 340 {name}_wrapper, 344 '''.format(preprocessor_check=preprocessor_check, name=name) [all …]
|
D | depends.py | 30 - domain name, can be used to run only specific tests via command-line; 113 cmd is a list of strings: a command name and its arguments.""" 169 def __init__(self, name, config_settings, commands): argument 177 command name and its arguments and is passed to subprocess.call with 179 self.name = name 189 log_line(self.name + ' PASSED', color=colors.green) 191 log_line(self.name + ' FAILED', color=colors.red) 193 log_line('starting ' + self.name, color=colors.cyan) 398 # Find hash modules by name. 400 # Find elliptic curve enabling macros by name. [all …]
|
D | check_names.py | 79 * name: the match itself. 81 def __init__(self, filename, line, line_no, pos, name): argument 87 self.name = name 145 * symbol_name: the name of the symbol. 178 .format(self.match.filename, self.match.line_no, self.match.name) 187 self.match.name, 199 * match: the Match object of the MBED|PSA name in question. 208 .format(self.match.filename, self.match.line_no, self.match.name) 216 .format(self.match.filename, self.match.line_no, self.match.name) 291 identifiers_justname = [x.name for x in identifiers] [all …]
|
D | gen_gcm_decrypt.pl | 29 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 =~ /=/);
|
D | generate_psa_tests.py | 36 def psa_want_symbol(name: str) -> str: 38 if name.startswith('PSA_'): 39 return name[:4] + 'WANT_' + name[4:] 41 raise ValueError('Unable to determine the PSA_WANT_ symbol for ' + name) 78 return sorted(psa_want_symbol(name) for name in used) 89 _implemented_dependencies = None #type: Optional[FrozenSet[str]] #pylint: disable=invalid-name 91 global _implemented_dependencies #pylint: disable=global-statement,invalid-name 179 if kt.name in self.ALWAYS_SUPPORTED: 184 psa_want_symbol(kt.name)] 189 if kt.name.endswith('_PUBLIC_KEY'): [all …]
|
/mbedtls-3.5.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.5.0/programs/psa/ |
D | psa_constant_names.c | 126 const char *name = get_name(alg); in append_with_alg() local 127 if (name != NULL) { in append_with_alg() 129 name, strlen(name)); in append_with_alg() 141 const char *name = psa_strerror(status); in psa_snprint_status() local 142 if (name == NULL) { in psa_snprint_status() 145 size_t length = strlen(name); in psa_snprint_status() 147 memcpy(buffer, name, length + 1); in psa_snprint_status() 158 const char *name = psa_ecc_family_name(curve); in psa_snprint_ecc_curve() local 159 if (name == NULL) { in psa_snprint_ecc_curve() 162 size_t length = strlen(name); in psa_snprint_ecc_curve() [all …]
|
/mbedtls-3.5.0/include/mbedtls/ |
D | x509.h | 53 * \name X509 Error codes 68 /** The name tag or value is invalid. */ 96 /** \} name X509 Error codes */ 99 * \name X509 Verify codes 105 #define MBEDTLS_X509_BADCERT_CN_MISMATCH 0x04 /**< The certificate Common Name (CN) does n… 124 /** \} name X509 Verify codes */ 128 * X.509 v3 Subject Alternative Name types. 133 * directoryName [4] Name, 221 * \name Structures for parsing X.509 certificates, CRLs and CSRs 287 * A structure for holding the parsed Subject Alternative Name, [all …]
|
D | ssl_ticket.h | 54 #define MBEDTLS_SSL_TICKET_KEY_NAME_BYTES 4 /*!< key name length in bytes */ 60 unsigned char MBEDTLS_PRIVATE(name)[MBEDTLS_SSL_TICKET_KEY_NAME_BYTES]; 141 * \param name Session ticket encryption key name 142 * \param nlength Session ticket encryption key name length in bytes 148 * \note \c name and \c k are recommended to be cryptographically 151 * \note \c nlength must match sizeof( ctx->name ) 164 const unsigned char *name, size_t nlength,
|
/mbedtls-3.5.0/programs/test/ |
D | selftest.c | 226 const char *name; member 395 #define CHECK_PADDING_SIGNED(TYPE, NAME) \ in main() argument 401 (int16_t) NAME ## _MAX != 0x7FFF) || \ in main() 403 (int32_t) NAME ## _MAX != 0x7FFFFFFF) || \ in main() 405 (int64_t) NAME ## _MAX != 0x7FFFFFFFFFFFFFFF)) \ in main() 418 #define CHECK_PADDING_UNSIGNED(TYPE, NAME) \ in main() argument 422 (uint16_t) NAME ## _MAX != 0xFFFF) || \ in main() 424 (uint32_t) NAME ## _MAX != 0xFFFFFFFF) || \ in main() 426 (uint64_t) NAME ## _MAX != 0xFFFFFFFFFFFFFFFF)) \ in main() 481 for (test = selftests; test->name != NULL; test++) { in main() [all …]
|
/mbedtls-3.5.0/library/ |
D | x509_create.c | 34 const char *name; /* String representation of AttributeType, e.g. member 36 size_t name_len; /* Length of 'name', without trailing 0 byte. */ 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() 119 if (cur->name == NULL) { in x509_attr_descr_from_name() 126 int mbedtls_x509_string_to_names(mbedtls_asn1_named_data **head, const char *name) in mbedtls_x509_string_to_names() argument 129 const char *s = name, *c = s; in mbedtls_x509_string_to_names() 238 const unsigned char *name = cur_name->val.p; in x509_write_name() local 244 (const char *) name, in x509_write_name()
|
D | ssl_ticket.c | 85 if ((ret = ctx->f_rng(ctx->p_rng, key->name, sizeof(key->name))) != 0) { in ssl_ticket_gen_key() 156 const unsigned char *name, size_t nlength, in mbedtls_ssl_ticket_rotate() argument 203 memcpy(key->name, name, TICKET_KEY_NAME_BYTES); in mbedtls_ssl_ticket_rotate() 342 memcpy(key_name, key->name, TICKET_KEY_NAME_BYTES); in mbedtls_ssl_ticket_write() 370 /* Additional data: key name, IV and length */ in mbedtls_ssl_ticket_write() 397 * Select key based on name 401 const unsigned char name[4]) in ssl_ticket_select_key() 406 if (memcmp(name, ctx->keys[i].name, 4) == 0) { in ssl_ticket_select_key() 480 /* Additional data: key name, IV and length */ in mbedtls_ssl_ticket_parse()
|
D | x509.c | 475 * Name ::= CHOICE { -- only one possibility for now -- 836 * Store the name in printable form into buf; no more 844 const mbedtls_x509_name *name; in mbedtls_x509_dn_gets() local 850 name = dn; in mbedtls_x509_dn_gets() 854 while (name != NULL) { in mbedtls_x509_dn_gets() 855 if (!name->oid.p) { in mbedtls_x509_dn_gets() 856 name = name->next; in mbedtls_x509_dn_gets() 860 if (name != dn) { in mbedtls_x509_dn_gets() 865 ret = mbedtls_oid_get_attr_short_name(&name->oid, &short_name); in mbedtls_x509_dn_gets() 874 for (i = 0, j = 0; i < name->val.len; i++, j++) { in mbedtls_x509_dn_gets() [all …]
|
/mbedtls-3.5.0/ |
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.
|
D | .travis.yml | 10 - name: basic checks and reference configurations 27 - name: full configuration 63 - name: Windows 84 - name: full configuration on arm64 109 - name: full configuration(GnuTLS compat tests) on arm64 149 name: "ARMmbed/mbedtls"
|
/mbedtls-3.5.0/docs/architecture/psa-migration/ |
D | syms.sh | 26 # - run this script with the name of your config as the only argument 40 NAME="$1" 41 FILE="library/libmbed${NAME}.a" 42 PREF="${CONFIG}-$NAME"
|