Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 39) sorted by relevance

12

/openthread-2.7.6/third_party/mbedtls/repo/programs/util/
Dstrerror.c56 long int val; in main() local
65 val = strtol( argv[1], &end, 10 ); in main()
68 val = strtol( argv[1], &end, 16 ); in main()
75 if( val > 0 ) in main()
76 val = -val; in main()
78 if( val != 0 ) in main()
81 mbedtls_strerror( val, error_buf, 200 ); in main()
82 mbedtls_printf("Last error was: -0x%04x - %s\n\n", (unsigned int) -val, error_buf ); in main()
90 mbedtls_exit( val ); in main()
/openthread-2.7.6/third_party/mbedtls/repo/tests/scripts/
Dgen_gcm_decrypt.pl30 my $val = "";
35 ($val) = ($line =~ /\[$name\s\=\s(\w+)\]/);
39 return $val;
45 my $val = "";
54 ($val) = ($line =~ /^$name = (\w+)/);
56 return $val;
62 my $val = "FAIL";
71 ($val) = ($line =~ /^$name = (\w+)/) if ($line =~ /=/);
73 return $val;
Dgen_gcm_encrypt.pl30 my $val = "";
35 ($val) = ($line =~ /\[$name\s\=\s(\w+)\]/);
39 return $val;
45 my $val = "";
54 ($val) = ($line =~ /^$name = (\w+)/);
56 return $val;
Dgen_ctr_drbg.pl31 my $val = "";
34 ($val) = ($line =~ /\[$name\s\=\s(\w+)\]/);
36 return $val;
42 my $val = "";
51 ($val) = ($line =~ /^$name = (\w+)/);
53 return $val;
Dgen_pkcs1_v21_sign_verify.pl28 my $val = "";
39 $val .= $line;
42 $val =~ s/[ \r\n]//g;
44 return $val;
Dgenerate_test_code.py829 val = test_args[i]
833 val, re.I):
835 if val not in unique_expressions:
836 unique_expressions.append(val)
840 exp_id = unique_expressions.index(val)
841 expression_code += gen_expression_check(exp_id, val)
842 val = exp_id
844 val = unique_expressions.index(val)
845 out_data_f.write(':' + typ + ':' + str(val))
/openthread-2.7.6/third_party/mbedtls/repo/library/
Dasn1write.c229 static int asn1_write_tagged_int( unsigned char **p, unsigned char *start, int val, int tag ) in asn1_write_tagged_int() argument
239 *--(*p) = val & 0xff; in asn1_write_tagged_int()
240 val >>= 8; in asn1_write_tagged_int()
242 while( val > 0 ); in asn1_write_tagged_int()
258 int mbedtls_asn1_write_int( unsigned char **p, unsigned char *start, int val ) in mbedtls_asn1_write_int() argument
260 return( asn1_write_tagged_int( p, start, val, MBEDTLS_ASN1_INTEGER ) ); in mbedtls_asn1_write_int()
263 int mbedtls_asn1_write_enum( unsigned char **p, unsigned char *start, int val ) in mbedtls_asn1_write_enum() argument
265 return( asn1_write_tagged_int( p, start, val, MBEDTLS_ASN1_ENUMERATED ) ); in mbedtls_asn1_write_enum()
415 const unsigned char *val, in mbedtls_asn1_store_named_data() argument
439 cur->val.len = val_len; in mbedtls_asn1_store_named_data()
[all …]
Dx509_create.c177 cur->val.tag = attr_descr->default_tag; in mbedtls_x509_string_to_names()
209 int critical, const unsigned char *val, size_t val_len ) in mbedtls_x509_set_extension() argument
219 cur->val.p[0] = critical; in mbedtls_x509_set_extension()
220 memcpy( cur->val.p + 1, val, val_len ); in mbedtls_x509_set_extension()
243 const unsigned char *name = cur_name->val.p; in x509_write_name()
244 size_t name_len = cur_name->val.len; in x509_write_name()
248 cur_name->val.tag, in x509_write_name()
326 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_raw_buffer( p, start, ext->val.p + 1, in x509_write_extension()
327 ext->val.len - 1 ) ); in x509_write_extension()
328 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( p, start, ext->val.len - 1 ) ); in x509_write_extension()
[all …]
Dasn1parse.c120 int *val ) in mbedtls_asn1_get_bool() argument
131 *val = ( **p != 0 ) ? 1 : 0; in mbedtls_asn1_get_bool()
139 int tag, int *val ) in asn1_get_tagged_int() argument
171 *val = 0; in asn1_get_tagged_int()
174 *val = ( *val << 8 ) | **p; in asn1_get_tagged_int()
183 int *val ) in mbedtls_asn1_get_int() argument
185 return( asn1_get_tagged_int( p, end, MBEDTLS_ASN1_INTEGER, val) ); in mbedtls_asn1_get_int()
190 int *val ) in mbedtls_asn1_get_enum() argument
192 return( asn1_get_tagged_int( p, end, MBEDTLS_ASN1_ENUMERATED, val) ); in mbedtls_asn1_get_enum()
447 mbedtls_free( cur->val.p ); in mbedtls_asn1_free_named_data()
Dhavege.c211 uint32_t val; in mbedtls_havege_random() local
219 if( use_len > sizeof( val ) ) in mbedtls_havege_random()
220 use_len = sizeof( val ); in mbedtls_havege_random()
225 val = hs->pool[hs->offset[0]++]; in mbedtls_havege_random()
226 val ^= hs->pool[hs->offset[1]++]; in mbedtls_havege_random()
228 memcpy( p, &val, use_len ); in mbedtls_havege_random()
Dx509.c66 #define CHECK_RANGE(min, max, val) \ argument
69 if( ( val ) < ( min ) || ( val ) > ( max ) ) \
353 mbedtls_x509_buf *val; in x509_get_attr_type_value() local
385 val = &cur->val; in x509_get_attr_type_value()
386 val->tag = *(*p)++; in x509_get_attr_type_value()
388 if( ( ret = mbedtls_asn1_get_len( p, end, &val->len ) ) != 0 ) in x509_get_attr_type_value()
391 val->p = *p; in x509_get_attr_type_value()
392 *p += val->len; in x509_get_attr_type_value()
778 for( i = 0; i < name->val.len; i++ ) in mbedtls_x509_dn_gets()
783 c = name->val.p[i]; in mbedtls_x509_dn_gets()
Dtiming.c240 unsigned long mbedtls_timing_get_timer( struct mbedtls_timing_hr_time *val, int reset ) in mbedtls_timing_get_timer() argument
242 struct _hr_time *t = (struct _hr_time *) val; in mbedtls_timing_get_timer()
290 unsigned long mbedtls_timing_get_timer( struct mbedtls_timing_hr_time *val, int reset ) in mbedtls_timing_get_timer() argument
292 struct _hr_time *t = (struct _hr_time *) val; in mbedtls_timing_get_timer()
Dx509write_csr.c86 const unsigned char *val, size_t val_len ) in mbedtls_x509write_csr_set_extension() argument
89 0, val, val_len ); in mbedtls_x509write_csr_set_extension()
/openthread-2.7.6/src/posix/platform/
Dtrel_udp6.cpp266 int val; in PrepareSocket() local
280 val = sInterfaceIndex; in PrepareSocket()
281 …VerifyOrDie(setsockopt(sSocket, IPPROTO_IPV6, IPV6_MULTICAST_IF, &val, sizeof(val)) == 0, OT_EXIT_… in PrepareSocket()
283 val = 0; in PrepareSocket()
284 …VerifyOrDie(setsockopt(sSocket, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, &val, sizeof(val)) == 0, OT_EXI… in PrepareSocket()
286 val = 1; in PrepareSocket()
287 …VerifyOrDie(setsockopt(sSocket, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val)) == 0, OT_EXIT_ERROR_E… in PrepareSocket()
288 …VerifyOrDie(setsockopt(sSocket, SOL_SOCKET, SO_REUSEPORT, &val, sizeof(val)) == 0, OT_EXIT_ERROR_E… in PrepareSocket()
290 val = 1; in PrepareSocket()
291 …VerifyOrDie(setsockopt(sSocket, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &val, sizeof(val)) == 0, OT_EXI… in PrepareSocket()
[all …]
/openthread-2.7.6/third_party/mbedtls/repo/tests/suites/
Dtest_suite_asn1write.function81 void mbedtls_asn1_write_bool( int val, data_t *expected )
90 ret = mbedtls_asn1_write_bool( &data.p, data.start, val );
101 void mbedtls_asn1_write_int( int val, data_t *expected )
110 ret = mbedtls_asn1_write_int( &data.p, data.start, val );
122 void mbedtls_asn1_write_enum( int val, data_t *expected )
131 ret = mbedtls_asn1_write_enum( &data.p, data.start, val );
142 void mbedtls_asn1_write_mpi( data_t *val, data_t *expected )
149 TEST_ASSERT( mbedtls_mpi_read_binary( &mpi, val->x, val->len ) == 0 );
402 ASSERT_ALLOC( nd.val.p, (size_t) old_len );
403 old_val = nd.val.p;
[all …]
Dtest_suite_asn1parse.function51 int val = -257;
53 ret = mbedtls_asn1_get_bool( p, end, &val );
55 TEST_ASSERT( val == 0 || val == 1 );
76 int val = -257;
78 ret = mbedtls_asn1_get_int( &q, end, &val );
319 int val;
321 ret = mbedtls_asn1_get_bool( &p, input->x + input->len, &val );
325 TEST_EQUAL( val, expected_value );
338 int val;
346 TEST_EQUAL( mbedtls_asn1_get_int( &p, input->x + input->len, &val ),
[all …]
Dtest_suite_debug.function172 mbedtls_mpi val;
176 mbedtls_mpi_init( &val );
182 TEST_ASSERT( mbedtls_mpi_read_string( &val, radix, value ) == 0 );
186 mbedtls_debug_print_mpi( &ssl, 0, file, line, prefix, &val);
191 mbedtls_mpi_free( &val );
Dhost_test.function250 char * val = *cur++;
254 if ( verify_string( &val ) == 0 )
256 *out++ = val;
266 if ( verify_int( val, int_params_store ) == 0 )
278 if ( verify_string( &val ) == 0 )
283 mbedtls_test_unhexify( (unsigned char *) val, strlen( val ),
284 val, &len ) == 0 );
287 *out++ = val;
298 int exp_id = strtol( val, NULL, 10 );
/openthread-2.7.6/tools/otci/otci/
Dutils.py54 val = func(self)
55 setattr(self, prop_name, val)
56 return val
Dotci.py398 val = self.__parse_str(output)
399 if not val.endswith(' dBm'):
402 return int(val[:-4])
404 def set_cca_threshold(self, val: int):
428 def set_txpower(self, val: int):
1199 def set_max_children(self, val: int):
1207 def set_child_ip_max(self, val: int):
1223 def set_child_supervision_interval(self, val: int):
1233 def set_child_supervision_check_timeout(self, val: int):
1361 def set_context_id_reuse_delay(self, val: int):
[all …]
/openthread-2.7.6/third_party/mbedtls/repo/include/mbedtls/
Dasn1.h184 mbedtls_asn1_buf val; /**< The named value. */ member
254 int *val );
275 int *val );
296 int *val );
Dasn1write.h191 int mbedtls_asn1_write_int( unsigned char **p, unsigned char *start, int val );
206 int mbedtls_asn1_write_enum( unsigned char **p, unsigned char *start, int val );
363 const unsigned char *val,
Dtiming.h94 unsigned long mbedtls_timing_get_timer( struct mbedtls_timing_hr_time *val, int reset );
Dx509_csr.h243 const unsigned char *val, size_t val_len );
/openthread-2.7.6/tests/scripts/thread-cert/pktverify/
Dlayers.py98 def _add_field(self, key: str, val: str):
99 logging.debug("layer %s add field: %s = %s", self.layer_name, key, val)
100 field = LayerField(name=key, value=val)

12