Home
last modified time | relevance | path

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

12

/mbedtls-latest/scripts/
Dcode_size_compare.py55 self, argument
72 self.version = version
73 self.git_rev = git_rev
74 self.arch = arch
75 self.config = config
76 self.compiler = compiler
77 self.opt_level = opt_level
79 self.pre_make_cmd = [] #type: typing.List[str]
80 self.make_cmd = ''
82 def get_info_indication(self): argument
[all …]
Dabi_check.py111 def __init__(self, old_version, new_version, configuration): argument
124 self.repo_path = "."
125 self.log = None
126 self.verbose = configuration.verbose
127 self._setup_logger()
128 self.report_dir = os.path.abspath(configuration.report_dir)
129 self.keep_all_reports = configuration.keep_all_reports
130 self.can_remove_report_dir = not (os.path.exists(self.report_dir) or
131 self.keep_all_reports)
132 self.old_version = old_version
[all …]
Dgenerate_psa_constants.py214 def __init__(self): argument
234 def _make_status_cases(self): argument
235 return '\n '.join(map(self._make_return_case,
236 sorted(self.statuses)))
238 def _make_ecc_curve_cases(self): argument
239 return '\n '.join(map(self._make_return_case,
240 sorted(self.ecc_curves)))
242 def _make_dh_group_cases(self): argument
243 return '\n '.join(map(self._make_return_case,
244 sorted(self.dh_groups)))
[all …]
Dconfig.py34 def __init__(self, active, name, value='', section=None): argument
35 self.active = active
36 self.name = name
37 self.value = value
38 self.section = section
57 def __init__(self): argument
58 self.settings = {}
60 def __contains__(self, name): argument
66 return name in self.settings and self.settings[name].active
68 def all(self, *names): argument
[all …]
Dassemble_changelog.py35 def __init__(self, filename, line_number, message, *args, **kwargs): argument
41 def __init__(self, line_offset, error_message): argument
42 self.line_offset = line_offset
43 self.error_message = error_message
47 def __init__(self, filename, line): argument
52 def __init__(self, filenames): argument
202 def add_categories_from_text(self, filename, line_offset, argument
206 categories = self.format.split_categories(text)
212 category.name not in self.categories:
221 if not self._only_url_re.match(line) and \
[all …]
Dgenerate_ssl_debug_helpers.py157 def __init__(self, source_code, span=None, group=None): argument
166 self._prototype = suffix_name if suffix_name else 'enum ' + prefix_name
167 self._name = suffix_name if suffix_name else prefix_name
168 self._body = body
169 self._source = source_code
170 self._span = span
172 def __repr__(self): argument
173 return 'Enum({},{})'.format(self._name, self._span)
175 def __str__(self): argument
176 return repr(self)
[all …]
Dmin_requirements.py30 def __init__(self) -> None: argument
31 self.requirements = [] #type: List[str]
33 def adjust_requirement(self, req: str) -> str: argument
41 def add_file(self, filename: str) -> None: argument
59 self.add_file(nested_file)
61 self.requirements.append(self.adjust_requirement(line))
63 def write(self, out: typing_util.Writable) -> None: argument
65 for req in self.requirements:
69 self, argument
87 self.write(req_file)
Dgenerate_driver_wrappers.py31 def __init__(self, message="Json Validation Failed"): argument
32 self.message = message
33 super().__init__(self.message)
37 def __init__(self, message="Driver Reader Failed"): argument
38 self.message = message
39 super().__init__(self.message)
/mbedtls-latest/tests/scripts/
Dcheck_names.py69 def __init__(self, filename, line, line_no, pos, name): argument
71 self.filename = filename
72 self.line = line
73 self.line_no = line_no
74 self.pos = pos
75 self.name = name
77 def __str__(self): argument
81 gutter = format(self.line_no, "4d")
82 underline = self.pos[0] * " " + (self.pos[1] - self.pos[0]) * "^"
86 " {0} | {1}".format(gutter, self.line) +
[all …]
Dgenerate_tls13_compat_tests.py68 def __init__(self, ciphersuite=None, signature_algorithm=None, named_group=None, argument
70 self._ciphers = []
71 self._sig_algs = []
72 self._named_groups = []
73 self._cert_sig_algs = []
75 self.add_ciphersuites(ciphersuite)
77 self.add_named_groups(named_group)
79 self.add_signature_algorithms(signature_algorithm)
81 self.add_cert_signature_algorithms(cert_sig_alg)
82 self._compat_mode = compat_mode
[all …]
Dcheck_files.py52 def __init__(self): argument
53 self.files_with_issues = {}
66 def should_check_file(self, filepath): argument
72 for files_exemption in self.suffix_exemptions:
75 if self.path_exemptions and \
76 re.match(self.path_exemptions, self.normalize_path(filepath)):
80 def check_file_for_issue(self, filepath): argument
87 def record_issue(self, filepath, line_number): argument
89 if filepath not in self.files_with_issues.keys():
90 self.files_with_issues[filepath] = []
[all …]
Daudit-validity-dates.py55 def __init__(self, data_type: DataType, x509_obj): argument
56 self.data_type = data_type
58 self.locations = [] # type: typing.List[str]
59 self.fill_validity_duration(x509_obj)
60 self._obj = x509_obj
62 self._identifier = hashlib.sha1(self._obj.public_bytes(encoding)).hexdigest()
65 def identifier(self): argument
70 return self._identifier
72 def fill_validity_duration(self, x509_obj): argument
76 if self.data_type == DataType.CRT:
[all …]
Dcheck_test_cases.py26 def script_name(self): argument
30 def idx(self): argument
34 def line(self): argument
40 def __init__(self, options): argument
41 self.errors = 0
42 self.warnings = 0
43 self.ignore_warnings = options.quiet
45 def error(self, file_name, line_number, fmt, *args): argument
48 self.errors += 1
50 def warning(self, file_name, line_number, fmt, *args): argument
[all …]
Ddepends.py71 def __init__(self, options=None): argument
82 self.red = ('\033[31m', normal)
83 self.green = ('\033[32m', normal)
84 self.cyan = ('\033[36m', normal)
85 self.bold_red = ('\033[1;31m', normal)
86 self.bold_green = ('\033[1;32m', normal)
156 def __init__(self, name, config_settings, commands): argument
166 self.name = name
167 self.config_settings = config_settings
168 self.commands = commands
[all …]
Dpsa_collect_statuses.py29 def __init__(self): argument
30 self.functions = {}
31 self.codes = set()
32 self.status_names = {}
34 def collect_log(self, log_file_name): argument
43 if function not in self.functions:
44 self.functions[function] = {}
45 fdata = self.functions[function]
46 if value not in self.functions[function]:
49 self.codes.add(int(value))
[all …]
Dtest_psa_constant_names.py107 def __init__(self, options) -> None: argument
108 self.options = options
109 self.count = 0
110 self.errors = [] #type: List[Tests.Error]
112 def run_one(self, inputs: InputsForTest, type_word: str) -> None: argument
120 include_path=self.options.include,
121 keep_c=self.options.keep_c)
122 output_bytes = subprocess.check_output([self.options.program,
126 self.count += len(expressions)
128 if self.options.show:
[all …]
Danalyze_outcomes.py48 def __init__(self): argument
49 self.error_count = 0
50 self.warning_count = 0
52 def new_section(self, fmt, *args, **kwargs): argument
53 self._print_line('\n*** ' + fmt + ' ***\n', *args, **kwargs)
55 def info(self, fmt, *args, **kwargs): argument
56 self._print_line('Info: ' + fmt, *args, **kwargs)
58 def error(self, fmt, *args, **kwargs): argument
59 self.error_count += 1
60 self._print_line('Error: ' + fmt, *args, **kwargs)
[all …]
Dtranslate_ciphers.py24 def test_translate_all_cipher_names(self): argument
69 self.assertEqual(g, g_exp)
73 self.assertEqual(o, o_exp)
77 self.assertEqual(m, m_exp)
Dlist-identifiers.sh52 check_names.py and is now self-complete.
/mbedtls-latest/tests/suites/
Dtest_suite_bignum.misc.data544 Copy self: large negative
547 Copy self: large positive
550 Copy self: small negative
553 Copy self: small positive
556 Copy self: zero (1 limb)
559 Copy self: zero (null)
670 Swap self: large negative
673 Swap self: large positive
676 Swap self: small negative
679 Swap self: small positive
[all …]
Dtest_suite_memory_buffer_alloc.data1 Memory buffer alloc self test
Dtest_suite_entropy.data85 Entropy self test
Dtest_suite_cmac.data1 CMAC self test
/mbedtls-latest/docs/
Dindex.rst16 Home <self>
/mbedtls-latest/programs/
DREADME.md95 * [`test/selftest.c`](test/selftest.c): runs the self-test function in each library module.
113 * [`x509/cert_write.c`](x509/cert_write.c): signs a certificate signing request, or self-signs a ce…

12