Home
last modified time | relevance | path

Searched refs:bs (Results 1 – 9 of 9) sorted by relevance

/openthread-3.4.0/third_party/mbedtls/repo/library/
Dasn1parse.c215 mbedtls_asn1_bitstring *bs) in mbedtls_asn1_get_bitstring() argument
220 if( ( ret = mbedtls_asn1_get_tag( p, end, &bs->len, MBEDTLS_ASN1_BIT_STRING ) ) != 0 ) in mbedtls_asn1_get_bitstring()
224 if( bs->len < 1 ) in mbedtls_asn1_get_bitstring()
226 bs->len -= 1; in mbedtls_asn1_get_bitstring()
229 bs->unused_bits = **p; in mbedtls_asn1_get_bitstring()
230 if( bs->unused_bits > 7 ) in mbedtls_asn1_get_bitstring()
235 bs->p = *p; in mbedtls_asn1_get_bitstring()
236 *p += bs->len; in mbedtls_asn1_get_bitstring()
Dx509_crt.c532 mbedtls_x509_bitstring bs = { 0, 0, NULL }; in x509_get_ns_cert_type() local
534 if( ( ret = mbedtls_asn1_get_bitstring( p, end, &bs ) ) != 0 ) in x509_get_ns_cert_type()
537 if( bs.len != 1 ) in x509_get_ns_cert_type()
542 *ns_cert_type = *bs.p; in x509_get_ns_cert_type()
552 mbedtls_x509_bitstring bs = { 0, 0, NULL }; in x509_get_key_usage() local
554 if( ( ret = mbedtls_asn1_get_bitstring( p, end, &bs ) ) != 0 ) in x509_get_key_usage()
557 if( bs.len < 1 ) in x509_get_key_usage()
563 for( i = 0; i < bs.len && i < sizeof( unsigned int ); i++ ) in x509_get_key_usage()
565 *key_usage |= (unsigned int) bs.p[i] << (8*i); in x509_get_key_usage()
/openthread-3.4.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_asn1parse.function86 mbedtls_asn1_bitstring bs;
88 ret = mbedtls_asn1_get_bitstring( p, end, &bs );
553 mbedtls_asn1_bitstring bs = { 0xdead, 0x21, NULL };
556 TEST_EQUAL( mbedtls_asn1_get_bitstring( &p, input->x + input->len, &bs ),
560 TEST_EQUAL( bs.len, (size_t) expected_length );
561 TEST_EQUAL( bs.unused_bits, expected_unused_bits );
562 TEST_ASSERT( bs.p != NULL );
563 TEST_EQUAL( bs.p - input->x + bs.len, input->len );
569 &bs.len ),
573 TEST_EQUAL( bs.len, (size_t) expected_length );
[all …]
Dtest_suite_x509parse.data2841 x509_verify_restart:"data_files/server10_int3-bs.pem":"data_files/test-int-ca2.crt":MBEDTLS_ERR_X50…
2845 x509_verify_restart:"data_files/server10_int3-bs.pem":"data_files/test-int-ca2.crt":MBEDTLS_ERR_X50…
2849 x509_verify_restart:"data_files/server10_int3-bs.pem":"data_files/test-int-ca2.crt":MBEDTLS_ERR_X50…
2853 x509_verify_restart:"data_files/server10_int3-bs.pem":"data_files/test-int-ca2.crt":MBEDTLS_ERR_X50…
/openthread-3.4.0/third_party/mbedtls/repo/include/mbedtls/
Dasn1.h323 mbedtls_asn1_bitstring *bs );
/openthread-3.4.0/third_party/mbedtls/repo/tests/scripts/
Dbasic-build-test.sh102 dd if=/dev/urandom of="seedfile" bs=64 count=1
Dall.sh3118 dd_cmd=(dd if=/dev/urandom of=./tests/seedfile bs=64 count=1)
/openthread-3.4.0/third_party/mbedtls/repo/tests/data_files/
DReadme-x509.txt101 _int3-bs.pem: S10 + I3-badsign
DMakefile298 server10_int3-bs.pem: server10.crt test-int-ca3-badsign.crt
300 all_final += server10_int3-bs.pem