Home
last modified time | relevance | path

Searched refs:int (Results 1 – 25 of 280) sorted by relevance

12345678910>>...12

/openthread-latest/tests/scripts/thread-cert/
Dtest_srp_register_services_diff_lease.py107 self.assertEqual(int(service['ttl']), 60)
108 self.assertEqual(int(service['lease']), 60)
109 self.assertEqual(int(service['key-lease']), 800)
125 self.assertEqual(int(service['ttl']), 60)
126 self.assertEqual(int(service['lease']), 60)
127 self.assertEqual(int(service['key-lease']), 800)
130 self.assertEqual(int(service['ttl']), 30)
131 self.assertEqual(int(service['lease']), 30)
132 self.assertEqual(int(service['key-lease']), 200)
135 self.assertEqual(int(service['ttl']), 100)
[all …]
Dtest_child_supervision.py83 self.assertEqual(int(child.get_child_supervision_check_failure_counter()), 0)
89 self.assertEqual(table[1]['suprvsn'], int(child.get_child_supervision_interval()))
100 self.assertEqual(int(child.get_child_supervision_interval()), 20)
103 self.assertEqual(table[1]['suprvsn'], int(child.get_child_supervision_interval()))
108 self.assertEqual(int(child.get_child_supervision_check_timeout()), 25)
118 self.assertEqual(int(child.get_child_supervision_check_failure_counter()), 0)
143 self.assertEqual(int(child.get_child_supervision_check_failure_counter()), 0)
153 self.assertTrue(int(child.get_child_supervision_check_failure_counter()) > 0)
161 self.assertEqual(int(child.get_child_supervision_check_failure_counter()), 0)
172 self.assertEqual(int(child.get_child_supervision_interval()), 0)
[all …]
/openthread-latest/tests/scripts/thread-cert/pktverify/
Dtest_layer_fields.py81 self.assertIsInstance(coap.version, int)
82 self.assertIsInstance(coap.type, int)
83 self.assertIsInstance(coap.token_len, int)
84 self.assertIsInstance(coap.code, int)
85 self.assertIsInstance(coap.mid, int)
86 self.assertIsInstanceOrNull(coap.token, int)
99 self.assertIsInstance(mle.cmd, int)
100 self.assertIsInstanceOrNull(mle.tlv.mode.receiver_on_idle, int)
101 self.assertIsInstanceOrNull(mle.tlv.mode.reserved1, int)
102 self.assertIsInstanceOrNull(mle.tlv.mode.reserved2, int)
[all …]
Dtest_info.py50 self.extaddrs = {int(k): ExtAddr(v) for k, v in test_info.get('extaddrs', {}).items()}
51 self.ethaddrs = {int(k): EthAddr(v) for k, v in test_info.get('ethaddrs', {}).items()}
52 … self.ipaddrs = {int(k): [Ipv6Addr(x) for x in l] for k, l in test_info.get('ipaddrs', {}).items()}
53 self.mleids = {int(k): Ipv6Addr(v) for k, v in test_info.get('mleids', {}).items()}
54 self.rlocs = {int(k): Ipv6Addr(v) for k, v in test_info.get('rlocs', {}).items()}
56 … self.omrs = {int(k): [Ipv6Addr(x) for x in l] for k, l in test_info.get('omrs', {}).items()}
57 self.duas = {int(k): Ipv6Addr(v) for k, v in test_info.get('duas', {}).items()}
77 def _convert_keys_to_ints(d: Dict[str, any]) -> Dict[int, any]:
78 return {int(k): v for k, v in d.items()}
81 def _convert_hex_values(d: Dict[any, str]) -> Dict[any, int]:
[all …]
/openthread-latest/tools/otci/otci/
Dotci.py158 def set_execute_command_retry(self, n: int): argument
243 size: int = 8, argument
244 count: int = 1, argument
246 hoplimit: int = 64, argument
268 statistics['transmitted_packets'] = int(m.group('transmitted'))
269 statistics['received_packets'] = int(m.group('received'))
274 'min': int(m.group('min')),
276 'max': int(m.group('max'))
284 def discover(self, channel: Optional[int] = None) -> List[Dict[str, Any]]: argument
288 def scan(self, channel: Optional[int] = None) -> List[Dict[str, Any]]: argument
[all …]
/openthread-latest/third_party/mbedtls/repo/scripts/mbedtls_dev/
Dbignum_common.py19 def invmod(a: int, n: int) -> int: argument
34 def invmod_positive(a: int, n: int) -> int: argument
39 def hex_to_int(val: str) -> int:
46 return int(val, 16)
51 def bound_mpi(val: int, bits_in_limb: int) -> int: argument
55 def bound_mpi_limbs(limbs: int, bits_in_limb: int) -> int: argument
60 def limbs_mpi(val: int, bits_in_limb: int) -> int: argument
69 def bits_to_limbs(bits: int, bits_in_limb: int) -> int: argument
74 def hex_digits_for_limb(limbs: int, bits_in_limb: int) -> int: argument
78 def hex_digits_max_int(val: str, bits_in_limb: int) -> int: argument
[all …]
/openthread-latest/tests/toranj/ncp/
Dtest-600-channel-manager-properties.py61 verify(int(node.get(wpan.WPAN_CHANNEL_MANAGER_NEW_CHANNEL), 0) == 0)
63 verify(int(node.get(wpan.WPAN_CHANNEL_MANAGER_SUPPORTED_CHANNEL_MASK), 0) == 0)
64 verify(int(node.get(wpan.WPAN_CHANNEL_MANAGER_FAVORED_CHANNEL_MASK), 0) == 0)
69 verify(int(node.get(wpan.WPAN_CHANNEL_MANAGER_DELAY), 0) == 180)
78 verify(int(node.get(wpan.WPAN_CHANNEL_MANAGER_AUTO_SELECT_INTERVAL), 0) == 1000)
80 all_channels_mask = int('0x7fff800', 0)
81 chan_11_mask = int('0x800', 0)
82 chan_11_to_13_mask = int('0x3800', 0)
85 verify(int(node.get(wpan.WPAN_CHANNEL_MANAGER_SUPPORTED_CHANNEL_MASK), 0) == all_channels_mask)
88 verify(int(node.get(wpan.WPAN_CHANNEL_MANAGER_FAVORED_CHANNEL_MASK), 0) == chan_11_mask)
[all …]
Dtest-602-channel-manager-channel-select.py48 while not all([(new_channel == int(node.get(wpan.WPAN_CHANNEL), 0)) for node in nodes]):
77 all_channels_mask = int('0x7fff800', 0)
78 chan_12_to_15_mask = int('0x000f000', 0)
79 chan_15_to_17_mask = int('0x0038000', 0)
83 verify(int(node.get(wpan.WPAN_CHANNEL_MANAGER_SUPPORTED_CHANNEL_MASK), 0) == all_channels_mask)
96 verify(int(node.get(wpan.WPAN_CHANNEL_MONITOR_SAMPLE_COUNT), 0) > EXPECTED_SAMEPLE_COUNT)
104 verify(int(node.get(wpan.WPAN_CHANNEL_MANAGER_NEW_CHANNEL), 0) == 0)
110 verify(int(node.get(wpan.WPAN_CHANNEL_MANAGER_NEW_CHANNEL), 0) == 0)
116 verify(int(node.get(wpan.WPAN_CHANNEL_MANAGER_NEW_CHANNEL), 0) == 11)
128 verify(int(node.get(wpan.WPAN_CHANNEL_MANAGER_NEW_CHANNEL), 0) == 12)
[all …]
Dtest-042-meshcop-joiner-discerner.py82 verify(int(joiner1.get(wpan.WPAN_THREAD_JOINER_DISCERNER_BIT_LENGTH), 0) == 0)
83 verify(int(joiner1.get(wpan.WPAN_THREAD_JOINER_DISCERNER_VALUE), 0) == 0)
89 verify(int(joiner1.get(wpan.WPAN_THREAD_JOINER_DISCERNER_BIT_LENGTH), 0) == D_LEN1)
90 verify(int(joiner1.get(wpan.WPAN_THREAD_JOINER_DISCERNER_VALUE), 0) == int(DISCERNER1, 0))
94 verify(int(joiner2.get(wpan.WPAN_THREAD_JOINER_DISCERNER_BIT_LENGTH), 0) == D_LEN2)
95 verify(int(joiner2.get(wpan.WPAN_THREAD_JOINER_DISCERNER_VALUE), 0) == int(DISCERNER2, 0))
101 verify(int(joiner3.get(wpan.WPAN_THREAD_JOINER_DISCERNER_BIT_LENGTH), 0) == D_LEN2)
102 verify(int(joiner3.get(wpan.WPAN_THREAD_JOINER_DISCERNER_VALUE), 0) == int(DISCERNER2, 0))
105 verify(int(joiner3.get(wpan.WPAN_THREAD_JOINER_DISCERNER_BIT_LENGTH), 0) == 0)
106 verify(int(joiner3.get(wpan.WPAN_THREAD_JOINER_DISCERNER_VALUE), 0) == 0)
Dtest-029-data-poll-interval.py67 child_timeout = int(child.get(wpan.WPAN_THREAD_CHILD_TIMEOUT), 0) * 1000
68 default_poll_interval = int(child.get(wpan.WPAN_POLL_INTERVAL), 0)
77 poll_count_before = int(child.get(wpan.WPAN_NCP_COUNTER_TX_PKT_DATA_POLL), 0)
80 verify(int(child.get(wpan.WPAN_POLL_INTERVAL), 0) == poll_interval)
83 poll_count_after = int(child.get(wpan.WPAN_NCP_COUNTER_TX_PKT_DATA_POLL), 0)
90 verify(actual_polls >= int(expected_polls))
103 poll_count_before = int(child.get(wpan.WPAN_NCP_COUNTER_TX_PKT_DATA_POLL), 0)
106 poll_count_after = int(child.get(wpan.WPAN_NCP_COUNTER_TX_PKT_DATA_POLL), 0)
113 verify(int(child.get(wpan.WPAN_POLL_INTERVAL), 0) == default_poll_interval)
118 new_default_interval = int(child.get(wpan.WPAN_POLL_INTERVAL), 0)
[all …]
/openthread-latest/tests/toranj/cli/
Dtest-031-service-aloc-route-lookup.py98 r1_rloc16 = int(r1.get_rloc16(), 16)
105 …verify(int(entry['RLOC16'], 0) == r1_rloc16 or int(entry['Link']) == 1 or int(entry['Next Hop']) !…
139 verify(int(new_counters['RxSuccess']) > int(old_counters['RxSuccess']))
140 verify(int(new_counters['TxSuccess']) > int(old_counters['TxSuccess']))
149 verify(int(new_counters['RxSuccess']) > int(old_counters['RxSuccess']))
150 verify(int(new_counters['TxSuccess']) > int(old_counters['TxSuccess']))
160 verify(int(new_counters['RxSuccess']) > int(old_counters['RxSuccess']))
161 verify(int(new_counters['TxSuccess']) > int(old_counters['TxSuccess']))
Dtest-009-router-table.py96 r1_rloc16 = int(r1.get_rloc16(), 16)
97 r2_rloc16 = int(r2.get_rloc16(), 16)
98 r3_rloc16 = int(r3.get_rloc16(), 16)
99 r4_rloc16 = int(r4.get_rloc16(), 16)
100 r5_rloc16 = int(r5.get_rloc16(), 16)
101 r6_rloc16 = int(r6.get_rloc16(), 16)
117 rloc16 = int(entry['RLOC16'], 0)
118 link = int(entry['Link'])
119 nexthop = int(entry['Next Hop'])
120 cost = int(entry['Path Cost'])
[all …]
Dtest-016-child-mode-change.py68 child1_rloc = int(child1.get_rloc16(), 16)
69 child2_rloc = int(child2.get_rloc16(), 16)
81 if int(entry['RLOC16'], 16) == child1_rloc:
85 elif int(entry['RLOC16'], 16) == child2_rloc:
104 if int(entry['RLOC16'], 16) == child1_rloc:
108 elif int(entry['RLOC16'], 16) == child2_rloc:
120 verify(int(cli.Node.parse_list(child2.get_mle_counter())['Role Detached']) == 1)
135 if int(entry['RLOC16'], 16) == child1_rloc:
139 elif int(entry['RLOC16'], 16) == child2_rloc:
149 verify(int(cli.Node.parse_list(child1.get_mle_counter())['Role Detached']) == 2)
[all …]
Dtest-013-address-cache-parent-switch.py110 r1_rloc16 = int(r1.get_rloc16(), 16)
117 …verify(int(entry['RLOC16'], 0) == r1_rloc16 or int(entry['Link']) == 1 or int(entry['Next Hop']) !…
129 r1_rloc16 = int(r1.get_rloc16(), 16)
130 r2_rloc16 = int(r2.get_rloc16(), 16)
131 r3_rloc16 = int(r3.get_rloc16(), 16)
132 c1_rloc16 = int(c1.get_rloc16(), 16)
133 c3_rloc16 = int(c3.get_rloc16(), 16)
153 verify(int(fields[1], 16) == r2_rloc16)
155 verify(int(fields[1], 16) == c3_rloc16)
179 verify(int(c2.get_parent_info()['Rloc'], 16) == r3_rloc16)
[all …]
Dtest-015-clear-addresss-cache-for-sed.py99 r1_rloc16 = int(r1.get_rloc16(), 16)
106 …verify(int(entry['RLOC16'], 0) == r1_rloc16 or int(entry['Link']) == 1 or int(entry['Next Hop']) !…
113 r1_rloc = int(r1.get_rloc16(), 16)
114 r2_rloc = int(r2.get_rloc16(), 16)
115 r3_rloc = int(r3.get_rloc16(), 16)
116 c_rloc = int(c.get_rloc16(), 16)
138 verify(int(fields[1], 16) == r3_rloc)
166 verify(int(c.get_parent_info()['Rloc'], 16) == r2_rloc)
184 verify(int(fields[1], 16) == r2_rloc)
212 verify(int(c.get_parent_info()['Rloc'], 16) == r1_rloc)
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dtest_suite_pkcs12.function18 void pkcs12_derive_key(int md_type, int key_size_arg,
19 data_t *password_arg, int password_usage,
20 data_t *salt_arg, int salt_usage,
21 int iterations,
22 data_t *expected_output, int expected_status)
49 int ret = mbedtls_pkcs12_derivation(output_data,
73 void pkcs12_pbe_encrypt(int params_tag, int cipher, int md, data_t *params_hex, data_t *pw,
74 data_t *data, int outsize, int ref_ret, data_t *ref_out)
76 int my_ret;
128 void pkcs12_pbe_decrypt(int params_tag, int cipher, int md, data_t *params_hex, data_t *pw,
[all …]
Dtest_suite_psa_crypto_persistent_key.function47 int key_lifetime, int key_type, int key_bits,
48 int key_usage, int key_alg, int key_alg2)
78 int expected_key_lifetime,
79 int expected_key_type,
80 int expected_key_bits,
81 int expected_key_usage,
82 int expected_key_alg,
83 int expected_key_alg2,
84 int expected_status)
121 void save_large_persistent_key(int data_length_arg, int expected_status)
[all …]
Dtest_suite_psa_crypto_attributes.function11 void attributes_set_get(int owner_id_arg, int id_arg, int lifetime_arg,
12 int usage_flags_arg, int alg_arg,
13 int type_arg, int bits_arg)
63 void persistence_attributes(int id1_arg, int owner_id1_arg, int lifetime_arg,
64 int id2_arg, int owner_id2_arg,
65 int expected_id_arg, int expected_owner_id_arg,
66 int expected_lifetime_arg)
Dtest_suite_x509parse.function63 int verify_none(void *data, mbedtls_x509_crt *crt, int certificate_depth, uint32_t *flags)
73 int verify_all(void *data, mbedtls_x509_crt *crt, int certificate_depth, uint32_t *flags)
84 int ca_callback_fail(void *data, mbedtls_x509_crt const *child, mbedtls_x509_crt **candidates)
93 int ca_callback(void *data, mbedtls_x509_crt const *child,
96 int ret = 0;
144 int verify_fatal(void *data, mbedtls_x509_crt *crt, int certificate_depth, uint32_t *flags)
146 int *levels = (int *) data;
201 int verify_print(void *data, mbedtls_x509_crt *crt, int certificate_depth, uint32_t *flags)
203 int ret;
229 int verify_parse_san(mbedtls_x509_subject_alternative_name *san,
[all …]
Dtest_suite_hkdf.function12 void test_hkdf(int md_alg, data_t *ikm, data_t *salt, data_t *info,
15 int ret;
38 void test_hkdf_extract(int md_alg,
43 int ret;
68 void test_hkdf_expand(int md_alg,
74 int ret;
100 void test_hkdf_extract_ret(int hash_len, int ret)
102 int output_ret;
127 void test_hkdf_expand_ret(int hash_len, int prk_len, int okm_len, int ret)
129 int output_ret;
Dtest_suite_cmac.function102 void mbedtls_cmac_setkey(int cipher_type, int key_size, int result)
128 void mbedtls_cmac_multiple_blocks(int cipher_type, data_t *key,
129 int keybits, int block_size,
130 data_t *block1, int block1_len,
131 data_t *block2, int block2_len,
132 data_t *block3, int block3_len,
133 data_t *block4, int block4_len,
196 void mbedtls_cmac_multiple_operations_same_key(int cipher_type,
197 data_t *key, int keybits,
198 int block_size,
[all …]
Dtest_suite_psa_crypto_op_fail.function6 static int test_equal_status(const char *test,
7 int line_no, const char *filename,
45 void hash_fail(int alg_arg, int expected_status_arg)
72 void mac_fail(int key_type_arg, data_t *key_data,
73 int alg_arg, int expected_status_arg)
118 void cipher_fail(int key_type_arg, data_t *key_data,
119 int alg_arg, int expected_status_arg)
164 void aead_fail(int key_type_arg, data_t *key_data,
165 int alg_arg, int expected_status_arg)
212 void sign_fail(int key_type_arg, data_t *key_data,
[all …]
Dtest_suite_pkcs1_v21.function11 void pkcs1_rsaes_oaep_encrypt(int mod, data_t *input_N, data_t *input_E,
12 int hash, data_t *message_str, data_t *rnd_buf,
13 data_t *result_str, int result)
62 void pkcs1_rsaes_oaep_decrypt(int mod, data_t *input_P, data_t *input_Q,
63 data_t *input_N, data_t *input_E, int hash,
65 int result)
126 void pkcs1_rsassa_pss_sign(int mod, data_t *input_P, data_t *input_Q,
127 data_t *input_N, data_t *input_E, int digest,
128 int hash, data_t *hash_digest, data_t *rnd_buf,
129 data_t *result_str, int fixed_salt_length,
[all …]
Dtest_suite_asn1parse.function19 static int nested_parse(unsigned char **const p,
22 int ret;
51 int val = -257;
73 /* If we're sure that the number fits in an int, also
75 if (ret == 0 && len < sizeof(int)) {
76 int val = -257;
125 int get_len_step(const data_t *input, size_t buffer_size,
132 int ret;
182 static int traverse_callback(void *ctx, int tag,
227 int full_result,
[all …]
/openthread-latest/third_party/mbedtls/repo/scripts/data_files/
Derror.fmt23 const char *mbedtls_high_level_strerr(int error_code)
25 int high_level_error_code;
46 const char *mbedtls_low_level_strerr(int error_code)
48 int low_level_error_code;
69 void mbedtls_strerror(int ret, char *buf, size_t buflen)
72 int use_ret;
93 mbedtls_snprintf(buf, buflen, "UNKNOWN ERROR CODE (%04X)", (unsigned int) use_ret);
133 mbedtls_snprintf(buf, buflen, "UNKNOWN ERROR CODE (%04X)", (unsigned int) use_ret);
144 void mbedtls_strerror(int ret, char *buf, size_t buflen)
156 void (*mbedtls_test_hook_error_add)(int, int, const char *, int);

12345678910>>...12