Home
last modified time | relevance | path

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

/openthread-latest/third_party/mbedtls/repo/library/
Dasn1parse.c183 mbedtls_asn1_bitstring *bs) in mbedtls_asn1_get_bitstring() argument
188 if ((ret = mbedtls_asn1_get_tag(p, end, &bs->len, MBEDTLS_ASN1_BIT_STRING)) != 0) { in mbedtls_asn1_get_bitstring()
193 if (bs->len < 1) { in mbedtls_asn1_get_bitstring()
196 bs->len -= 1; in mbedtls_asn1_get_bitstring()
199 bs->unused_bits = **p; in mbedtls_asn1_get_bitstring()
200 if (bs->unused_bits > 7) { in mbedtls_asn1_get_bitstring()
206 bs->p = *p; in mbedtls_asn1_get_bitstring()
207 *p += bs->len; in mbedtls_asn1_get_bitstring()
Dx509.c1343 mbedtls_x509_bitstring bs = { 0, 0, NULL }; in mbedtls_x509_get_ns_cert_type() local
1345 if ((ret = mbedtls_asn1_get_bitstring(p, end, &bs)) != 0) { in mbedtls_x509_get_ns_cert_type()
1351 if (bs.len == 0) { in mbedtls_x509_get_ns_cert_type()
1356 if (bs.len != 1) { in mbedtls_x509_get_ns_cert_type()
1362 *ns_cert_type = *bs.p; in mbedtls_x509_get_ns_cert_type()
1372 mbedtls_x509_bitstring bs = { 0, 0, NULL }; in mbedtls_x509_get_key_usage() local
1374 if ((ret = mbedtls_asn1_get_bitstring(p, end, &bs)) != 0) { in mbedtls_x509_get_key_usage()
1380 if (bs.len == 0) { in mbedtls_x509_get_key_usage()
1387 for (i = 0; i < bs.len && i < sizeof(unsigned int); i++) { in mbedtls_x509_get_key_usage()
1388 *key_usage |= (unsigned int) bs.p[i] << (8*i); in mbedtls_x509_get_key_usage()
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dtest_suite_asn1parse.function86 mbedtls_asn1_bitstring bs;
88 ret = mbedtls_asn1_get_bitstring(p, end, &bs);
533 mbedtls_asn1_bitstring bs = { 0xdead, 0x21, NULL };
536 TEST_EQUAL(mbedtls_asn1_get_bitstring(&p, input->x + input->len, &bs),
539 TEST_EQUAL(bs.len, (size_t) expected_length);
540 TEST_EQUAL(bs.unused_bits, expected_unused_bits);
541 TEST_ASSERT(bs.p != NULL);
542 TEST_EQUAL(bs.p - input->x + bs.len, input->len);
548 &bs.len),
551 TEST_EQUAL(bs.len, (size_t) expected_length);
[all …]
Dtest_suite_x509parse.data3356 x509_verify_restart:"data_files/server10_int3-bs.pem":"data_files/test-int-ca2.crt":MBEDTLS_ERR_X50…
3360 x509_verify_restart:"data_files/server10_int3-bs.pem":"data_files/test-int-ca2.crt":MBEDTLS_ERR_X50…
3364 x509_verify_restart:"data_files/server10_int3-bs.pem":"data_files/test-int-ca2.crt":MBEDTLS_ERR_X50…
3368 x509_verify_restart:"data_files/server10_int3-bs.pem":"data_files/test-int-ca2.crt":MBEDTLS_ERR_X50…
/openthread-latest/third_party/mbedtls/repo/include/mbedtls/
Dasn1.h330 mbedtls_asn1_bitstring *bs);
/openthread-latest/third_party/mbedtls/repo/tests/data_files/
DMakefile503 echo '00' | xxd -r -p | dd of=$@ bs=1 seek=$$(wc -c <$<) conv=notrunc
506 echo 'c1' | xxd -r -p | dd of=$@ bs=1 seek=$$(wc -c <$<) conv=notrunc
509 echo 'b90a' | xxd -r -p | dd of=$@ bs=1 seek=$$(wc -c <$<) conv=notrunc
512 echo 'a710945f' | xxd -r -p | dd of=$@ bs=1 seek=$$(wc -c <$<) conv=notrunc
515 echo 'a4a7ff27267aaa0f' | xxd -r -p | dd of=$@ bs=1 seek=$$(wc -c <$<) conv=notrunc
518 echo 'cff8303376ffa47a29' | xxd -r -p | dd of=$@ bs=1 seek=$$(wc -c <$<) conv=notrunc
615 server10_int3-bs.pem: server10.crt test-int-ca3-badsign.crt
617 all_final += server10_int3-bs.pem
1963 echo 'a1' | xxd -r -p | dd of=$@ bs=1 seek=547 conv=notrunc
1969 echo 'a1' | xxd -r -p | dd of=$@ bs=1 seek=918 conv=notrunc
[all …]
DReadme-x509.txt105 _int3-bs.pem: S10 + I3-badsign
/openthread-latest/third_party/mbedtls/repo/tests/scripts/
Dbasic-build-test.sh84 dd if=/dev/urandom of="seedfile" bs=64 count=1
Dall.sh6455 dd_cmd=(dd if=/dev/urandom of=./tests/seedfile bs=64 count=1)