Home
last modified time | relevance | path

Searched refs:cls (Results 1 – 24 of 24) sorted by relevance

/openthread-latest/third_party/mbedtls/repo/scripts/mbedtls_dev/
Dbignum_common.py224 def get_value_pairs(cls) -> Iterator[Tuple[str, str]]: argument
230 if cls.arity == 1:
231 yield from ((a, "0") for a in cls.input_values)
232 elif cls.arity == 2:
233 if cls.unique_combinations_only:
234 yield from combination_pairs(cls.input_values)
238 for a in cls.input_values
239 for b in cls.input_values
245 def generate_function_tests(cls) -> Iterator[test_case.TestCase]: argument
246 if cls.input_style not in cls.input_styles:
[all …]
Dtest_data_generation.py49 def __new__(cls, *args, **kwargs): argument
51 cls.count += 1
52 return super().__new__(cls)
97 def generate_function_tests(cls) -> Iterator[test_case.TestCase]: argument
123 def generate_tests(cls) -> Iterator[test_case.TestCase]: argument
133 if issubclass(cls, BaseTest) and not inspect.isabstract(cls):
135 yield from cls.generate_function_tests()
136 for subclass in sorted(cls.__subclasses__(), key=lambda c: c.__name__):
Dbignum_core.py56 def generate_function_tests(cls) -> Iterator[test_case.TestCase]: argument
57 for input_hex, descr, counts in cls.DATA:
59 yield cls(input_hex, descr, count).create_test_case()
155 def generate_function_tests(cls) -> Iterator[test_case.TestCase]: argument
156 for bitsize, bitsize_description in cls.bitsizes:
157 for window_size in cls.window_sizes:
158 yield (cls(bitsize, bitsize_description, window_size)
269 def get_value_pairs(cls) -> Iterator[Tuple[str, str]]: argument
276 yield from cls.input_cases
279 def generate_function_tests(cls) -> Iterator[test_case.TestCase]: argument
[all …]
Dbignum_mod_raw.py146 def test_cases_for_values(cls, rep: bignum_common.ModulusRepresentation, argument
154 for bil in cls.limb_sizes:
155 test_object = cls(n, a, bits_in_limb=bil)
177 def generate_function_tests(cls) -> Iterator[test_case.TestCase]: argument
180 for n in cls.moduli:
181 for a in cls.input_values:
182 yield from cls.test_cases_for_values(rep, n, a)
Dcrypto_knowledge.py460 def hash_length(cls, alg: str) -> int: argument
462 if alg in cls.HASH_LENGTH:
463 return cls.HASH_LENGTH[alg]
464 m = cls.HASH_LENGTH_BITS_RE.search(alg)
480 def permitted_truncations(cls, base: str) -> FrozenSet[int]: argument
488 if base in cls.PERMITTED_TAG_LENGTHS:
489 return cls.PERMITTED_TAG_LENGTHS[base]
490 max_length = cls.MAC_LENGTH.get(base, None)
492 m = cls.HMAC_RE.match(base)
494 max_length = cls.hash_length(m.group(1))
Dc_parsing_helper.py34 def normalize_type(cls, typ: str) -> str: argument
Dmacro_collector.py149 def _argument_split(cls, arguments: str) -> List[str]: argument
150 return re.split(cls._argument_split_re, arguments)
/openthread-latest/tests/scripts/thread-cert/
Ddtls.py108 def from_bytes(cls, data): argument
115 return cls(content_type, version, epoch, sequence_number, length, fragment)
136 def from_bytes(cls, data): argument
165 def from_bytes(cls, data): argument
182 return cls(
208 def from_bytes(cls, data): argument
210 return cls(major, minor)
233 def from_bytes(cls, data): argument
235 random_bytes = bytes(data.read(cls.random_bytes_length))
236 return cls(gmt_unix_time, random_bytes)
[all …]
Dcoap.py83 def _read_extended_value(cls, data, value): argument
93 def from_bytes(cls, data): argument
99 delta = cls._read_extended_value(data, delta)
100 length = cls._read_extended_value(data, length)
102 return cls(delta, length)
164 def from_class_and_detail(cls, _class, detail): argument
165 return cls(((_class & 0x7) << 5) | (detail & 0x1F))
168 def from_dotted(cls, dotted_str): argument
170 return cls.from_class_and_detail(int(_class), int(detail))
Dipv6.py133 def from_bytes(cls, data): argument
318 def from_bytes(cls, data): argument
331 return cls(
510 def from_bytes(cls, data): argument
516 return cls(src_port, dst_port, payload_length, checksum)
577 def from_bytes(cls, data): argument
582 return cls(_type, code, checksum)
665 def from_bytes(cls, data): argument
674 return cls(next_header, fragment_offset, more_flag, identificaton)
772 def from_bytes(cls, data): argument
[all …]
Dcommon.py153 def from_eui64(cls, eui64, big_endian=True): argument
157 return cls(eui64, MacAddressType.LONG)
160 def from_rloc16(cls, rloc16, big_endian=True): argument
168 return cls(mac_address, MacAddressType.SHORT)
Dmac802154.py60 def add(cls, short_address, extended_address): argument
61 short_address = cls._get_short_address_value(short_address)
62 cls.device_descriptors[short_address] = extended_address
65 def get_extended(cls, short_address): argument
66 short_address = cls._get_short_address_value(short_address)
67 return cls.device_descriptors[short_address]
Dlowpan.py95 def from_bytes(cls, data_bytes): argument
115 return cls(tf, nh, hlim, cid, sac, sam, m, dac, dam)
161 def from_bytes(cls, data_bytes): argument
167 return cls(eid, nh)
196 def from_bytes(cls, data_bytes): argument
206 return cls(c, p)
907 def from_bytes(cls, data): argument
918 return cls(datagram_size, datagram_tag, datagram_offset)
/openthread-latest/third_party/mbedtls/repo/scripts/
Dassemble_changelog.py82 def extract_top_version(cls, changelog_file_content): argument
97 def version_title_text(cls, version_title): argument
102 def split_categories(cls, version_body): argument
111 def format_category(cls, title, body): argument
120 def is_released_version(cls, title): argument
128 def extract_top_version(cls, changelog_file_content): argument
130 m = re.search(cls._top_version_re, changelog_file_content)
135 name = re.match(cls._name_re, top_version_title).group(1)
136 if cls.is_released_version(top_version_title):
138 top_version_title = cls._unreleased_version_text.format(name) + '\n\n'
[all …]
Dgenerate_ssl_debug_helpers.py74 for cls in classes:
75 for instance in cls.extract(s, st, end):
144 def extract(cls, source_code, start=0, end=-1): argument
233 def extract(cls, source_code, start=0, end=-1): argument
292 def extract(cls, source_code, start=0, end=-1): argument
/openthread-latest/tools/otci/otci/
Dtypes.py66 def __new__(cls, o: str): argument
67 ins = str.__new__(cls, o)
89 def __new__(cls, o: str): argument
90 ins = str.__new__(cls, o)
/openthread-latest/tools/tcat_ble_client/tlv/
Dtcat_tlv.py52 def from_value(cls, value: int): argument
53 return cls._value2member_map_.get(value)
Ddataset_tlv.py75 def from_value(cls, value: int): argument
76 return cls._value2member_map_.get(value)
/openthread-latest/tests/scripts/thread-cert/pktverify/
Dnull_field.py38 def __new__(cls, *args, **kwargs): argument
42 nullField = object.__new__(cls, *args, **kwargs)
Dpcap_reader.py47 def read(cls, argument
/openthread-latest/tools/tcat_ble_client/ble/
Dble_stream.py69 …async def create(cls, address_or_ble_device: Union[BLEDevice, str], service_uuid, tx_char_uuid, rx… argument
72 self = cls(client, service_uuid, tx_char_uuid, rx_char_uuid)
/openthread-latest/tests/toranj/cli/
Dcli.py947 def parse_table(cls, table_lines): argument
949 headers = cls.split_table_row(table_lines[0])
954 fields = cls.split_table_row(row)
960 def split_table_row(cls, row): argument
964 def parse_list(cls, list_lines): argument
972 def parse_multiradio_neighbor_entry(cls, line): argument
990 def finalize_all_nodes(cls): argument
996 def set_time_speedup_factor(cls, factor): argument
/openthread-latest/third_party/mbedtls/repo/tests/scripts/
Dgenerate_psa_tests.py445 cls, argument
465 m = cls.RSA_OAEP_RE.match(alg.string)
477 m = cls.BRAINPOOL_RE.match(key_type.string)
/openthread-latest/tests/toranj/ncp/
Dwpan.py630 def init_all_nodes(cls, disable_logs=not _VERBOSE, wait_time=15): argument
658 def finalize_all_nodes(cls): argument
665 def set_time_speedup_factor(cls, factor): argument