Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 36) sorted by relevance

12

/mbedtls-development/scripts/mbedtls_dev/
A Dmacro_collector.py57 self.generator = enumerate(open(self.filename,
59 return self
134 self.arguments_for['hash_alg'] = sorted(self.hash_algorithms)
135 self.arguments_for['mac_alg'] = sorted(self.mac_algorithms)
136 self.arguments_for['ka_alg'] = sorted(self.ka_algorithms)
137 self.arguments_for['kdf_alg'] = sorted(self.kdf_algorithms)
138 self.arguments_for['aead_alg'] = sorted(self.aead_algorithms)
140 self.arguments_for['curve'] = sorted(self.ecc_curves)
141 self.arguments_for['group'] = sorted(self.dh_groups)
143 self.arguments_for['location'] = sorted(self.locations)
[all …]
A Dpsa_storage.py37 self.unknown_values.add(self.normalize(content))
70 def value(self) -> int: argument
75 normalized = self.normalize(self.string)
78 self.value_if_known = self.value_cache[normalized]
104 def __init__(self, *, argument
113 self.version = self.LATEST_VERSION if version is None else version
150 header = self.MAGIC + self.pack('L', self.version)
153 self.lifetime, self.type, self.bits,
154 self.usage, self.alg, self.alg2)
155 material = self.pack('L', len(self.material)) + self.material
[all …]
A Dcrypto_knowledge.py40 self.name = name.strip()
47 if '(' in self.name:
60 self.expression = self.name
62 if self.params is not None:
63 self.expression += '(' + ', '.join(self.params) + ')'
65 self.private_type = re.sub(r'_PUBLIC_KEY\Z', r'_KEY_PAIR', self.name)
108 return self.ECC_KEY_SIZES[self.params[0]]
109 return self.KEY_TYPE_SIZES[self.private_type]
139 return b''.join([self.DATA_BLOCK] * (length // len(self.DATA_BLOCK)) +
140 [self.DATA_BLOCK[:length % len(self.DATA_BLOCK)]])
[all …]
A Dtest_case.py47 self.comments += lines
50 self.description = description
53 self.dependencies = dependencies
56 self.function = function
59 self.arguments = arguments
62 if self.description is None:
64 if self.function is None:
75 self.check_completeness()
79 for line in self.comments:
82 if self.dependencies:
[all …]
A Dtyping_util.py38 def write(self, text: str) -> Any: argument
/mbedtls-development/tests/scripts/
A Dtest_generate_test_code.py217 def test_local(self): argument
257 def test_dispatch(self): argument
298 self.name = file_name
300 def next(self): argument
321 self.line_no += 1
350 def test_line_no(self): argument
463 def test_tolerance(self): argument
862 def test_parsing(self): argument
1057 def test_parser(self): argument
1132 def test_no_args(self): argument
[all …]
A Dcheck_names.py79 self.line = line
81 self.pos = pos
82 self.name = name
84 def __str__(self): argument
89 underline = self.pos[0] * " " + (self.pos[1] - self.pos[0]) * "^"
105 def __init__(self): argument
111 def __str__(self): argument
173 .format(self.match.filename, self.match.line_no, self.match.name)
202 .format(self.match.filename, self.match.line_no, self.match.name)
210 .format(self.match.filename, self.match.line_no, self.match.name)
[all …]
A Dcheck_files.py60 def __init__(self): argument
61 self.files_with_issues = {}
83 if self.path_exemptions and \
84 re.match(self.path_exemptions, self.normalize_path(filepath)):
104 logger.info(self.heading)
337 def __init__(self, log_file): argument
341 self.check_repo_path()
342 self.logger = None
344 self.issues_to_check = [
382 def check_files(self): argument
[all …]
A Dgenerate_psa_tests.py108 self.constructors = self.read_psa_interface()
169 self, argument
318 self, argument
340 self, argument
392 if self.forward:
415 self, argument
447 self, argument
497 self, argument
600 self, argument
706 self.test_suite_directory = self.get_option(options, 'directory',
[all …]
A Dcheck_test_cases.py33 def __init__(self, options): argument
34 self.errors = 0
35 self.warnings = 0
41 self.errors += 1
44 if not self.ignore_warnings:
47 self.warnings += 1
72 def new_per_file_state(self): argument
126 def walk_all(self): argument
144 def __init__(self, results): argument
145 self.results = results
[all …]
A Danalyze_outcomes.py19 def __init__(self): argument
20 self.error_count = 0
21 self.warning_count = 0
29 self.error_count += 1
33 self.warning_count += 1
39 def __init__(self): argument
44 self.successes = []
45 self.failures = []
47 def hits(self): argument
52 return len(self.successes) + len(self.failures)
[all …]
A Dpsa_collect_statuses.py41 def __init__(self): argument
42 self.functions = {}
43 self.codes = set()
44 self.status_names = {}
46 def collect_log(self, log_file_name): argument
56 self.functions[function] = {}
57 fdata = self.functions[function]
61 self.codes.add(int(value))
69 self.status_names[value] = name
71 def report(self): argument
[all …]
A Dtest_psa_constant_names.py101 def __init__(self, options) -> None: argument
102 self.options = options
103 self.count = 0
104 self.errors = [] #type: List[Tests.Error]
120 self.count += len(expressions)
122 if self.options.show:
125 self.errors.append(self.Error(type=type_word,
130 def run_all(self, inputs: InputsForTest) -> None: argument
134 self.run_one(inputs, type_word)
142 for error in self.errors:
[all …]
A Dtranslate_ciphers.py37 def test_translate_all_cipher_names(self): argument
74 self.assertEqual(g, g_exp)
78 self.assertEqual(o, o_exp)
A Dgenerate_test_code.py211 def __init__(self, file_name): argument
217 super(FileWrapper, self).__init__(file_name, 'r')
218 self._line_no = 0
220 def next(self): argument
231 parent = super(FileWrapper, self)
237 self._line_no += 1
246 def get_line_no(self): argument
250 return self._line_no
A Dlist-identifiers.sh64 check_names.py and is now self-complete.
/mbedtls-development/scripts/
A Dabi_check.py56 self.repo_path = "."
57 self.log = None
62 self.can_remove_report_dir = not (os.path.exists(self.report_dir) or
78 if self.verbose:
261 if self.brief:
300 if not (self.keep_all_reports or self.brief):
309 self._pretty_revision(self.old_version),
310 self._pretty_revision(self.new_version)
319 for version in [self.old_version, self.new_version]:
332 self._get_abi_dump_for_ref(self.old_version)
[all …]
A Dgenerate_psa_constants.py225 def __init__(self): argument
245 def _make_status_cases(self): argument
249 def _make_ecc_curve_cases(self): argument
253 def _make_dh_group_cases(self): argument
257 def _make_key_type_cases(self): argument
274 d = self.key_types_from_curve
278 def _make_dh_key_type_code(self): argument
279 d = self.key_types_from_group
291 def _make_algorithm_cases(self): argument
301 def _make_algorithm_code(self): argument
[all …]
A Dcode_size_compare.py42 self.repo_path = "."
49 self.old_rev = old_revision
51 self.git_command = "git"
52 self.make_command = "make"
132 def compare_code_size(self): argument
137 old_file = open(os.path.join(self.csv_dir, self.old_rev + ".csv"), "r")
138 new_file = open(os.path.join(self.csv_dir, self.new_rev + ".csv"), "r")
139 res_file = open(os.path.join(self.result_dir, "compare-" + self.old_rev
175 self.check_repo_path()
176 self._get_code_size_for_rev(self.old_rev)
[all …]
A Dconfig.py41 self.active = active
42 self.name = name
43 self.value = value
63 def __init__(self): argument
64 self.settings = {}
72 return name in self.settings and self.settings[name].active
74 def all(self, *names): argument
78 def any(self, *names): argument
82 def known(self, name): argument
127 def unset(self, name): argument
[all …]
A Dassemble_changelog.py247 (self.header,
249 self.trailer) = self.format.extract_top_version(whole_file)
254 offset = (self.header + self.top_version_title).count('\n') + 1
375 self.category = self.LOCAL
376 self.datetime = self.file_timestamp(filename)
380 self.category = self.COMMITTED
381 self.datetime = self.commit_timestamp(creation_hash)
383 self.category = self.MERGED
384 self.datetime = self.commit_timestamp(merge_hash)
386 def sort_key(self): argument
[all …]
/mbedtls-development/tests/data_files/dir4/
A DReadme33 7. pathlen constraint on the root CA with maximum number of elements and a self signed certificate …
34 … the certificates issued before the integration will have an intermadiate self signed certificate …
36 cert71.crt (max_pathlen=1) -> cert72.crt -> cert73.crt (self signed) -> cert74.crt -> cert74.crt
/mbedtls-development/tests/suites/
A Dtest_suite_memory_buffer_alloc.data1 Memory buffer alloc self test
A Dtest_suite_mpi.data526 Copy self: large negative
529 Copy self: large positive
532 Copy self: small negative
535 Copy self: small positive
538 Copy self: zero (1 limb)
541 Copy self: zero (null)
652 Swap self: large negative
655 Swap self: large positive
658 Swap self: small negative
664 Swap self: zero (1 limb)
[all …]
A Dtest_suite_entropy.data85 Entropy self test

Completed in 37 milliseconds

12