Home
last modified time | relevance | path

Searched full:name (Results 1 – 25 of 195) sorted by relevance

12345678

/mbedtls-3.6.0/scripts/
Dconfig.py26 * 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 …]
Dgenerate_query_config.pl75 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 */
Decp_comb_table.py28 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 );
Dgenerate_ssl_debug_helpers.py126 [typedef] enum [prefix name] { [body] } [suffix name];
205 const char *{name}_str( {prototype} in )
215 name=self._name,
234 sig_alg_pattern = re.compile(r'#define\s+(?P<name>MBEDTLS_TLS1_3_SIG_\w+)\s+' +
260 name = m.groupdict()['name']
261 return_val = name[len('MBEDTLS_TLS1_3_SIG_'):].lower()
263 ' case {}:\n return "{}";'.format(name, return_val))
293 named_group_pattern = re.compile(r'#define\s+(?P<name>MBEDTLS_SSL_IANA_TLS_GROUP_\w+)\s+' +
319 name = m.groupdict()['name']
320 iana_name = name[len('MBEDTLS_SSL_IANA_TLS_GROUP_'):].lower()
[all …]
Dgenerate_psa_constants.py217 def _make_return_case(name): argument
218 return 'case %(name)s: return "%(name)s";' % {'name': name}
221 def _make_append_case(name): argument
222 template = ('case %(name)s: '
223 'append(&buffer, buffer_size, &required_size, "%(name)s", %(length)d); '
225 return template % {'name': name, 'length': len(name)}
Dmemory.sh42 # 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-3.6.0/scripts/mbedtls_dev/
Dmacro_collector.py22 # Dear Pylint, conventionally, a context manager class name is lowercase.
23 # pylint: disable=invalid-name,too-few-public-methods
38 snippet annotates the exception with the file name and line number.
97 # macro name -> list of argument names
99 # argument name -> list of values
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:
[all …]
Dpsa_information.py44 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)
115 _implemented_dependencies = None #type: Optional[FrozenSet[str]] #pylint: disable=invalid-name
117 global _implemented_dependencies #pylint: disable=global-statement,invalid-name
Dtest_data_generation.py25 T = TypeVar('T') #pylint: disable=invalid-name
38 test_name: A common name or description of the test function. This can
69 Creates a description of the test case, including a name for the test
154 """The location of the data file with the specified base name."""
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)
[all …]
Dcrypto_knowledge.py71 def __init__(self, name: str, params: Optional[Iterable[str]] = None) -> None:
75 `name` is a string 'PSA_KEY_TYPE_xxx' which is the name of a PSA key
79 in `name` as a string.
82 self.name = name.strip()
83 """The key type macro name (``PSA_KEY_TYPE_xxx``).
86 name of the macro, and the arguments are in `self.params`.
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)
[all …]
/mbedtls-3.6.0/tests/scripts/
Dgenerate_test_code.py27 test name
263 def name(self): member in FileWrapper
265 Property that indicates name of the file that is read.
267 return self._f.name
318 def gen_function_wrapper(name, local_vars, args_dispatch): argument
323 :param name: Test function name
331 void {name}_wrapper( void ** params )
334 {name}( {args} );
336 '''.format(name=name,
343 def gen_dispatch(name, dependencies): argument
[all …]
Ddepends.py16 - 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)
387 # Find hash modules by name.
389 # Find elliptic curve enabling macros by name.
[all …]
Dcheck_names.py67 * 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 …]
Dgen_gcm_decrypt.pl17 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 =~ /=/);
Dgenerate_pkcs7_tests.py26 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 + " #" + \
/mbedtls-3.6.0/tests/suites/
Dtest_suite_x509parse.data3 …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/psa/
Dpsa_constant_names.c114 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/
Dtest_certs.h.jinja211 {% 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}}"
/mbedtls-3.6.0/include/mbedtls/
Dx509.h41 * \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 …]
Dssl_ticket.h42 #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];
129 * \param name Session ticket encryption key name
130 * \param nlength Session ticket encryption key name length in bytes
136 * \note \c name and \c k are recommended to be cryptographically
139 * \note \c nlength must match sizeof( ctx->name )
152 const unsigned char *name, size_t nlength,
/mbedtls-3.6.0/library/
Dx509.c471 * 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 …]
Dssl_ticket.c79 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()
364 /* Additional data: key name, IV and length */ in mbedtls_ssl_ticket_write()
391 * Select key based on name
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()
474 /* Additional data: key name, IV and length */ in mbedtls_ssl_ticket_parse()
/mbedtls-3.6.0/programs/test/
Dselftest.c267 const char *name; member
439 #define CHECK_PADDING_SIGNED(TYPE, NAME) \ in main() argument
445 (int16_t) NAME ## _MAX != 0x7FFF) || \ in main()
447 (int32_t) NAME ## _MAX != 0x7FFFFFFF) || \ in main()
449 (int64_t) NAME ## _MAX != 0x7FFFFFFFFFFFFFFF)) \ in main()
462 #define CHECK_PADDING_UNSIGNED(TYPE, NAME) \ in main() argument
466 (uint16_t) NAME ## _MAX != 0xFFFF) || \ in main()
468 (uint32_t) NAME ## _MAX != 0xFFFFFFFF) || \ in main()
470 (uint64_t) NAME ## _MAX != 0xFFFFFFFFFFFFFFFF)) \ in main()
525 for (test = selftests; test->name != NULL; test++) { in main()
[all …]
/mbedtls-3.6.0/docs/architecture/psa-migration/
Dsyms.sh16 # - 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-3.6.0/
D.pylintrc7 # [invalid-name]
20 # [invalid-name]
25 # [invalid-name]
33 # [invalid-name]
74 # Allow unused variables if their name starts with an underscore.

12345678