Home
last modified time | relevance | path

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

1234567

/openthread-2.7.6/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()}
75 def _convert_keys_to_ints(d: Dict[str, any]) -> Dict[int, any]:
76 return {int(k): v for k, v in d.items()}
79 def _convert_hex_values(d: Dict[any, str]) -> Dict[any, int]:
80 return {k: int(v, 16) for k, v in d.items()}
82 def get_node_name(self, node_id: int) -> str: argument
/openthread-2.7.6/tools/otci/otci/
Dotci.py187 size: int = 8, argument
188 count: int = 1, argument
190 hoplimit: int = 64, argument
212 statistics['transmitted_packets'] = int(m.group('transmitted'))
213 statistics['received_packets'] = int(m.group('received'))
218 'min': int(m.group('min')),
220 'max': int(m.group('max'))
228 def scan(self, channel: int = None) -> List[Dict[str, Any]]: argument
244 'joinable': bool(int(J)),
247 'panid': int(panid, 16),
[all …]
/openthread-2.7.6/tests/toranj/
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-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 …]
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-040-network-data-stable-full.py82 if (p.prefix == prefix and p.origin == "ncp" and int(p.rloc16(), 0) == rloc16):
83 verify(int(p.prefix_len) == prefix_len)
105 if (p.prefix == prefix and p.origin == "ncp" and int(p.rloc16(), 0) == rloc16):
148 leader_rloc = int(leader.get(wpan.WPAN_THREAD_RLOC16), 0)
149 c1_rloc = int(c1.get(wpan.WPAN_THREAD_RLOC16), 0)
150 c2_rloc = int(c2.get(wpan.WPAN_THREAD_RLOC16), 0)
159 old_version = int(leader.get(wpan.WPAN_THREAD_NETWORK_DATA_VERSION), 0)
160 old_stable_version = int(leader.get(wpan.WPAN_THREAD_STABLE_NETWORK_DATA_VERSION), 0)
183 new_version = int(leader.get(wpan.WPAN_THREAD_NETWORK_DATA_VERSION), 0)
184 new_stable_version = int(leader.get(wpan.WPAN_THREAD_STABLE_NETWORK_DATA_VERSION), 0)
[all …]
Dtest-027-child-mode-change.py60 verify(int(entry.rloc16, 16) == int(child.get(wpan.WPAN_THREAD_RLOC16), 16))
61 mode = int(child.get(wpan.WPAN_THREAD_DEVICE_MODE), 0)
112 verify(int(child1.get(wpan.WPAN_THREAD_DEVICE_MODE), 0) == DEVICE_MODE_END_DEVICE)
113 verify(int(child2.get(wpan.WPAN_THREAD_DEVICE_MODE), 0) == DEVICE_MODE_SLEEPY_END_DEVICE)
130 child2_rx_ip_counter = int(child2.get(wpan.WPAN_NCP_COUNTER_RX_IP_SEC_TOTAL), 0)
139 verify(int(child1.get(wpan.WPAN_THREAD_DEVICE_MODE), 0) == DEVICE_MODE_SLEEPY_END_DEVICE)
142 verify(int(child2.get(wpan.WPAN_THREAD_DEVICE_MODE), 0) == DEVICE_MODE_END_DEVICE)
149 …verify(int(child2.get(wpan.WPAN_NCP_COUNTER_RX_IP_SEC_TOTAL), 0) >= child2_rx_ip_counter + NUM_MSG…
/openthread-2.7.6/third_party/mbedtls/repo/tests/suites/
Dtest_suite_pkcs1_v21.function12 void pkcs1_rsaes_oaep_encrypt( int mod, int radix_N, char * input_N,
13 int radix_E, char * input_E, int hash,
15 data_t * result_str, int result )
55 void pkcs1_rsaes_oaep_decrypt( int mod, int radix_P, char * input_P,
56 int radix_Q, char * input_Q, int radix_N,
57 char * input_N, int radix_E, char * input_E,
58 int hash, data_t * result_str,
60 int result )
121 void pkcs1_rsassa_pss_sign( int mod, int radix_P, char * input_P, int radix_Q,
122 char * input_Q, int radix_N, char * input_N,
[all …]
Dtest_suite_mpi.function22 int mbedtls_test_mpi_miller_rabin_determinizer( void* state,
53 static int f_rng_bytes_left( void *state, unsigned char *buf, size_t len )
309 void mpi_read_write_string( int radix_X, char * input_X, int radix_A,
310 char * input_A, int output_size, int result_read,
311 int result_write )
338 void mbedtls_mpi_read_binary( data_t * buf, int radix_A, char * input_A )
357 void mbedtls_mpi_read_binary_le( data_t * buf, int radix_A, char * input_A )
376 void mbedtls_mpi_write_binary( int radix_X, char * input_X,
377 data_t * input_A, int output_size,
378 int result )
[all …]
Dtest_suite_rsa.function24 const int valid_padding = MBEDTLS_RSA_PKCS_V21;
25 const int invalid_padding = 42;
26 const int valid_mode = MBEDTLS_RSA_PRIVATE;
27 const int invalid_mode = 42;
470 void mbedtls_rsa_pkcs1_sign( data_t * message_str, int padding_mode,
471 int digest, int mod, int radix_P, char * input_P,
472 int radix_Q, char * input_Q, int radix_N,
473 char * input_N, int radix_E, char * input_E,
474 data_t * result_str, int result )
522 void mbedtls_rsa_pkcs1_verify( data_t * message_str, int padding_mode,
[all …]
Dtest_suite_psa_crypto_persistent_key.function45 int key_lifetime, int key_type, int key_bits,
46 int key_usage, int key_alg, int key_alg2 )
76 int expected_key_lifetime,
77 int expected_key_type,
78 int expected_key_bits,
79 int expected_key_usage,
80 int expected_key_alg,
81 int expected_key_alg2,
82 int expected_status )
118 void save_large_persistent_key( int data_length_arg, int expected_status )
[all …]
Dtest_suite_x509parse.function60 int verify_none( void *data, mbedtls_x509_crt *crt, int certificate_depth, uint32_t *flags )
70 int verify_all( void *data, mbedtls_x509_crt *crt, int certificate_depth, uint32_t *flags )
81 int ca_callback_fail( void *data, mbedtls_x509_crt const *child, mbedtls_x509_crt **candidates )
90 int ca_callback( void *data, mbedtls_x509_crt const *child,
93 int ret = 0;
145 int verify_fatal( void *data, mbedtls_x509_crt *crt, int certificate_depth, uint32_t *flags )
147 int *levels = (int *) data;
204 int verify_print( void *data, mbedtls_x509_crt *crt, int certificate_depth, uint32_t *flags )
206 int ret;
232 int verify_parse_san( mbedtls_x509_subject_alternative_name *san,
[all …]
Dtest_suite_cmac.function102 void mbedtls_cmac_setkey( int cipher_type, int key_size, int result )
122 void mbedtls_cmac_multiple_blocks( int cipher_type, data_t * key,
123 int keybits, int block_size,
124 data_t * block1, int block1_len,
125 data_t * block2, int block2_len,
126 data_t * block3, int block3_len,
127 data_t * block4, int block4_len,
186 void mbedtls_cmac_multiple_operations_same_key( int cipher_type,
187 data_t * key, int keybits,
188 int block_size,
[all …]
Dtest_suite_psa_crypto_init.function27 static int fake_entropy_source( void *state_arg,
137 void init_deinit( int count )
140 int i;
153 void deinit_without_init( int count )
155 int i;
166 void validate_module_init_generate_random( int count )
170 int i;
183 void validate_module_init_key_based( int count )
189 int i;
205 void custom_entropy_sources( int sources_arg, int expected_init_status_arg )
[all …]
Dtest_suite_x509write.function29 int mbedtls_rsa_decrypt_func( void *ctx, int mode, size_t *olen,
36 int mbedtls_rsa_sign_func( void *ctx,
37 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng,
38 int mode, mbedtls_md_type_t md_alg, unsigned int hashlen,
52 static int x509_crt_verifycsr( const unsigned char *buf, size_t buflen )
57 int ret = 0;
98 void x509_csr_check( char * key_file, char * cert_req_check_file, int md_type,
99 int key_usage, int set_key_usage, int cert_type,
100 int set_cert_type )
106 int ret;
[all …]
Dtest_suite_hkdf.function12 void test_hkdf( int md_alg, data_t *ikm, data_t *salt, data_t *info,
15 int ret;
33 void test_hkdf_extract( int md_alg, char *hex_ikm_string,
36 int ret;
67 void test_hkdf_expand( int md_alg, char *hex_info_string,
71 int ret;
103 void test_hkdf_extract_ret( int hash_len, int ret )
105 int output_ret;
130 void test_hkdf_expand_ret( int hash_len, int prk_len, int okm_len, int ret )
132 int output_ret;
Dtest_suite_nist_kw.function128 void mbedtls_nist_kw_setkey( int cipher_id, int key_size,
129 int is_wrap, int result )
133 int ret;
149 void nist_kw_plaintext_lengths( int in_len, int out_len, int mode, int res )
200 void nist_kw_ciphertext_lengths( int in_len, int out_len, int mode, int res )
206 int unwrap_ret;
245 void mbedtls_nist_kw_wrap( int cipher_id, int mode, data_t *key, data_t *msg,
280 void mbedtls_nist_kw_unwrap( int cipher_id, int mode, data_t *key, data_t *msg,
281 data_t *expected_result, int expected_ret )
Dtest_suite_pkparse.function13 void pk_parse_keyfile_rsa( char * key_file, char * password, int result )
16 int res;
42 void pk_parse_public_keyfile_rsa( char * key_file, int result )
45 int res;
67 void pk_parse_public_keyfile_ec( char * key_file, int result )
70 int res;
92 void pk_parse_keyfile_ec( char * key_file, char * password, int result )
95 int res;
117 void pk_parse_key( data_t * buf, int result )
Dtest_suite_asn1parse.function19 static int nested_parse( unsigned char **const p,
22 int ret;
51 int val = -257;
72 /* If we're sure that the number fits in an int, also
74 if( ret == 0 && len < sizeof( int ) )
76 int val = -257;
124 int get_len_step( const data_t *input, size_t buffer_size,
131 int ret;
191 static int traverse_callback( void *ctx, int tag,
234 int full_result,
[all …]
Dtest_suite_psa_crypto_metadata.function71 int has_even_parity( uint32_t value )
143 void mac_algorithm_core( psa_algorithm_t alg, int classification_flags,
164 void aead_algorithm_core( psa_algorithm_t alg, int classification_flags,
192 void hash_algorithm( int alg_arg, int length_arg )
235 void mac_algorithm( int alg_arg, int classification_flags,
236 int length_arg,
237 int key_type_arg, int key_bits_arg )
271 void hmac_algorithm( int alg_arg,
272 int length_arg,
273 int block_size_arg )
[all …]
Dtest_suite_base64.function12 int dst_buf_size, int result )
31 void mbedtls_base64_decode( char * src_string, char * dst_string, int result )
36 int res;
52 void base64_encode_hex( data_t * src, char * dst, int dst_buf_size,
53 int result )
73 void base64_decode_hex( char * src, data_t * dst, int dst_buf_size,
74 int result )
95 void base64_decode_hex_src( data_t * src, char * dst_ref, int result )
Dtest_suite_ccm.function18 void mbedtls_ccm_setkey( int cipher_id, int key_size, int result )
22 int ret;
38 void ccm_lengths( int msg_len, int iv_len, int add_len, int tag_len, int res )
47 int decrypt_ret;
79 void ccm_star_lengths( int msg_len, int iv_len, int add_len, int tag_len,
80 int res )
89 int decrypt_ret;
120 void mbedtls_ccm_encrypt_and_tag( int cipher_id, data_t * key,
153 void mbedtls_ccm_auth_decrypt( int cipher_id, data_t * key,
155 data_t * add, int tag_len, int result,
[all …]
/openthread-2.7.6/third_party/nlbuild-autotools/repo/third_party/autoconf/m4/
Dax_cxx_compile_stdcxx.m4178 static_assert(sizeof(int) <= sizeof(T), "not big enough");
214 int
217 int a = 1;
246 int
247 test(const int c, volatile int v)
249 static_assert(is_same<int, decltype(0)>::value == true, "");
250 static_assert(is_same<int, decltype(c)>::value == false, "");
251 static_assert(is_same<int, decltype(v)>::value == false, "");
256 static_assert(is_same<int, decltype(ac)>::value == true, "");
257 static_assert(is_same<int, decltype(av)>::value == true, "");
[all …]

1234567