/openthread-latest/third_party/mbedtls/repo/scripts/mbedtls_dev/ |
D | bignum_common.py | 224 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 …]
|
D | test_data_generation.py | 49 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__):
|
D | bignum_core.py | 56 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 …]
|
D | bignum_mod_raw.py | 146 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)
|
D | crypto_knowledge.py | 460 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))
|
D | c_parsing_helper.py | 34 def normalize_type(cls, typ: str) -> str: argument
|
D | macro_collector.py | 149 def _argument_split(cls, arguments: str) -> List[str]: argument 150 return re.split(cls._argument_split_re, arguments)
|
/openthread-latest/tests/scripts/thread-cert/ |
D | dtls.py | 108 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 …]
|
D | coap.py | 83 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))
|
D | ipv6.py | 133 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 …]
|
D | common.py | 153 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)
|
D | mac802154.py | 60 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]
|
D | lowpan.py | 95 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/ |
D | assemble_changelog.py | 82 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 …]
|
D | generate_ssl_debug_helpers.py | 74 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/ |
D | types.py | 66 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/ |
D | tcat_tlv.py | 52 def from_value(cls, value: int): argument 53 return cls._value2member_map_.get(value)
|
D | dataset_tlv.py | 75 def from_value(cls, value: int): argument 76 return cls._value2member_map_.get(value)
|
/openthread-latest/tests/scripts/thread-cert/pktverify/ |
D | null_field.py | 38 def __new__(cls, *args, **kwargs): argument 42 nullField = object.__new__(cls, *args, **kwargs)
|
D | pcap_reader.py | 47 def read(cls, argument
|
/openthread-latest/tools/tcat_ble_client/ble/ |
D | ble_stream.py | 69 …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/ |
D | cli.py | 947 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/ |
D | generate_psa_tests.py | 445 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/ |
D | wpan.py | 630 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
|