Home
last modified time | relevance | path

Searched refs:mbedtls_snprintf (Results 1 – 25 of 31) sorted by relevance

12

/third_party/mbedtls/library/
Ddebug.c31 #define mbedtls_snprintf snprintf macro
70 mbedtls_snprintf( idstr, sizeof( idstr ), "%p: %s", (void*)ssl, str ); in debug_send_line()
129 mbedtls_snprintf( str, sizeof( str ), "%s() returned %d (-0x%04x)\n", in mbedtls_debug_print_ret()
151 mbedtls_snprintf( str + idx, sizeof( str ) - idx, "dumping '%s' (%u bytes)\n", in mbedtls_debug_print_buf()
167 mbedtls_snprintf( str + idx, sizeof( str ) - idx, " %s\n", txt ); in mbedtls_debug_print_buf()
174 idx += mbedtls_snprintf( str + idx, sizeof( str ) - idx, "%04x: ", in mbedtls_debug_print_buf()
179 idx += mbedtls_snprintf( str + idx, sizeof( str ) - idx, " %02x", in mbedtls_debug_print_buf()
187 idx += mbedtls_snprintf( str + idx, sizeof( str ) - idx, " " ); in mbedtls_debug_print_buf()
189 mbedtls_snprintf( str + idx, sizeof( str ) - idx, " %s\n", txt ); in mbedtls_debug_print_buf()
209 mbedtls_snprintf( str, sizeof( str ), "%s(X)", text ); in mbedtls_debug_print_ecp()
[all …]
Derror.c31 #define mbedtls_snprintf snprintf macro
762 mbedtls_snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", (unsigned int) use_ret ); in mbedtls_strerror()
764 mbedtls_snprintf( buf, buflen, "%s", high_level_error_description ); in mbedtls_strerror()
789 mbedtls_snprintf( buf + len, buflen - len, " : " ); in mbedtls_strerror()
799 mbedtls_snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", (unsigned int) use_ret ); in mbedtls_strerror()
801 mbedtls_snprintf( buf, buflen, "%s", low_level_error_description ); in mbedtls_strerror()
Dx509_crl.c52 #define mbedtls_snprintf snprintf macro
637 ret = mbedtls_snprintf( p, n, "%sCRL version : %d", in mbedtls_x509_crl_info()
641 ret = mbedtls_snprintf( p, n, "\n%sissuer name : ", prefix ); in mbedtls_x509_crl_info()
646 ret = mbedtls_snprintf( p, n, "\n%sthis update : " \ in mbedtls_x509_crl_info()
653 ret = mbedtls_snprintf( p, n, "\n%snext update : " \ in mbedtls_x509_crl_info()
662 ret = mbedtls_snprintf( p, n, "\n%sRevoked certificates:", in mbedtls_x509_crl_info()
668 ret = mbedtls_snprintf( p, n, "\n%sserial number: ", in mbedtls_x509_crl_info()
675 ret = mbedtls_snprintf( p, n, " revocation date: " \ in mbedtls_x509_crl_info()
685 ret = mbedtls_snprintf( p, n, "\n%ssigned using : ", prefix ); in mbedtls_x509_crl_info()
692 ret = mbedtls_snprintf( p, n, "\n" ); in mbedtls_x509_crl_info()
Dx509_crt.c59 #define mbedtls_snprintf snprintf macro
1648 snp_ret = mbedtls_snprintf( entry_name, sizeof entry_name, in mbedtls_x509_crt_parse_path()
1853 ret = mbedtls_snprintf( p, n, "\n%s <unsupported>", prefix ); in x509_info_subject_alt_name()
1858 ret = mbedtls_snprintf( p, n, "\n%s <malformed>", prefix ); in x509_info_subject_alt_name()
1874 ret = mbedtls_snprintf( p, n, "\n%s otherName :", prefix ); in x509_info_subject_alt_name()
1880 ret = mbedtls_snprintf( p, n, "\n%s hardware module name :", prefix ); in x509_info_subject_alt_name()
1882 … ret = mbedtls_snprintf( p, n, "\n%s hardware type : ", prefix ); in x509_info_subject_alt_name()
1888 … ret = mbedtls_snprintf( p, n, "\n%s hardware serial number : ", prefix ); in x509_info_subject_alt_name()
1912 ret = mbedtls_snprintf( p, n, "\n%s dNSName : ", prefix ); in x509_info_subject_alt_name()
1930 ret = mbedtls_snprintf( p, n, "\n%s <unsupported>", prefix ); in x509_info_subject_alt_name()
[all …]
Dx509.c54 #define mbedtls_snprintf snprintf macro
766 ret = mbedtls_snprintf( p, n, merge ? " + " : ", " ); in mbedtls_x509_dn_gets()
773 ret = mbedtls_snprintf( p, n, "%s=", short_name ); in mbedtls_x509_dn_gets()
775 ret = mbedtls_snprintf( p, n, "\?\?=" ); in mbedtls_x509_dn_gets()
789 ret = mbedtls_snprintf( p, n, "%s", s ); in mbedtls_x509_dn_gets()
820 ret = mbedtls_snprintf( p, n, "%02X%s", in mbedtls_x509_serial_gets()
827 ret = mbedtls_snprintf( p, n, "...." ); in mbedtls_x509_serial_gets()
849 ret = mbedtls_snprintf( p, n, "???" ); in mbedtls_x509_sig_alg_gets()
851 ret = mbedtls_snprintf( p, n, "%s", desc ); in mbedtls_x509_sig_alg_gets()
865 ret = mbedtls_snprintf( p, n, " (%s, MGF1-%s, 0x%02X)", in mbedtls_x509_sig_alg_gets()
[all …]
Dx509_csr.c52 #define mbedtls_snprintf snprintf macro
343 ret = mbedtls_snprintf( p, n, "%sCSR version : %d", in mbedtls_x509_csr_info()
347 ret = mbedtls_snprintf( p, n, "\n%ssubject name : ", prefix ); in mbedtls_x509_csr_info()
352 ret = mbedtls_snprintf( p, n, "\n%ssigned using : ", prefix ); in mbedtls_x509_csr_info()
365 ret = mbedtls_snprintf( p, n, "\n%s%-" BC "s: %d bits\n", prefix, key_size_str, in mbedtls_x509_csr_info()
Dpsa_its_file.c28 #define mbedtls_snprintf snprintf macro
83 mbedtls_snprintf( filename, PSA_ITS_STORAGE_FILENAME_LENGTH, in psa_its_fill_filename()
Dplatform.c115 int (*mbedtls_snprintf)( char * s, size_t n, variable
123 mbedtls_snprintf = snprintf_func; in mbedtls_platform_set_snprintf()
Doid.c36 #define mbedtls_snprintf snprintf macro
756 ret = mbedtls_snprintf( p, n, "%d.%d", oid->p[0] / 40, oid->p[0] % 40 );
773 ret = mbedtls_snprintf( p, n, ".%u", value );
/third_party/mbedtls/programs/test/
Dbenchmark.c723 mbedtls_snprintf( title, sizeof( title ), "AES-CBC-%d", keysize ); in main()
744 mbedtls_snprintf( title, sizeof( title ), "AES-XTS-%d", keysize ); in main()
767 mbedtls_snprintf( title, sizeof( title ), "AES-GCM-%d", keysize ); in main()
790 mbedtls_snprintf( title, sizeof( title ), "AES-CCM-%d", keysize ); in main()
813 mbedtls_snprintf( title, sizeof( title ), "ChaCha20-Poly1305" ); in main()
836 mbedtls_snprintf( title, sizeof( title ), "AES-CMAC-%d", keysize ); in main()
865 mbedtls_snprintf( title, sizeof( title ), "ARIA-CBC-%d", keysize ); in main()
887 mbedtls_snprintf( title, sizeof( title ), "CAMELLIA-CBC-%d", keysize ); in main()
989 mbedtls_snprintf( title, sizeof( title ), "RSA-%d", keysize ); in main()
1048 mbedtls_snprintf( title, sizeof( title ), "DHE-%d", dhm_sizes[i] ); in main()
[all …]
Dselftest.c63 #define mbedtls_snprintf snprintf macro
160 ret = mbedtls_snprintf( buf, n, "%s", "123" ); in test_snprintf()
/third_party/mbedtls/tests/suites/
Dtest_suite_version.function20 mbedtls_snprintf( build_str, 100, "%d.%d.%d", MBEDTLS_VERSION_MAJOR,
23 mbedtls_snprintf( build_str_full, 100, "mbed TLS %d.%d.%d", MBEDTLS_VERSION_MAJOR,
55 mbedtls_snprintf( build_str, 100, "%u.%u.%u",
59 mbedtls_snprintf( build_str_full, 100, "mbed TLS %s", version_str );
Dtest_suite_x509parse.function213 ret = mbedtls_snprintf( p, n, "depth %d - serial ", certificate_depth );
219 ret = mbedtls_snprintf( p, n, " - subject " );
225 ret = mbedtls_snprintf( p, n, " - flags 0x%08x\n", *flags );
241 ret = mbedtls_snprintf( p, n, "type : %d", san->type );
247 ret = mbedtls_snprintf( p, n, "\notherName :");
253 ret = mbedtls_snprintf( p, n, " hardware module name :" );
255 ret = mbedtls_snprintf( p, n, " hardware type : " );
262 ret = mbedtls_snprintf( p, n, ", hardware serial number : " );
279 ret = mbedtls_snprintf( p, n, "\ndNSName : " );
297 ret = mbedtls_snprintf( p, n, "\n" );
[all …]
Dtest_suite_psa_its.function29 mbedtls_snprintf( filename, PSA_ITS_STORAGE_FILENAME_LENGTH,
157 mbedtls_snprintf( stored, sizeof( stored ),
164 mbedtls_snprintf( stored, sizeof( stored ),
/third_party/mbedtls/scripts/data_files/
Derror.fmt31 #define mbedtls_snprintf snprintf
108 mbedtls_snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", (unsigned int) use_ret );
110 mbedtls_snprintf( buf, buflen, "%s", high_level_error_description );
135 mbedtls_snprintf( buf + len, buflen - len, " : " );
145 mbedtls_snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", (unsigned int) use_ret );
147 mbedtls_snprintf( buf, buflen, "%s", low_level_error_description );
/third_party/mbedtls/include/mbedtls/
Dplatform.h221 extern int (*mbedtls_snprintf)( char * s, size_t n, const char * format, ... );
235 #define mbedtls_snprintf MBEDTLS_PLATFORM_SNPRINTF_MACRO macro
237 #define mbedtls_snprintf MBEDTLS_PLATFORM_STD_SNPRINTF macro
/third_party/mbedtls/programs/pkey/
Dpk_verify.c27 #define mbedtls_snprintf snprintf macro
90 mbedtls_snprintf( filename, sizeof(filename), "%s.sig", argv[2] ); in main()
Drsa_verify_pss.c27 #define mbedtls_snprintf snprintf macro
108 mbedtls_snprintf( filename, 512, "%s.sig", argv[2] ); in main()
Drsa_verify.c28 #define mbedtls_snprintf snprintf macro
103 mbedtls_snprintf( filename, sizeof(filename), "%s.sig", argv[1] ); in main()
Drsa_sign_pss.c27 #define mbedtls_snprintf snprintf macro
149 mbedtls_snprintf( filename, 512, "%s.sig", argv[2] ); in main()
Dpk_sign.c27 #define mbedtls_snprintf snprintf macro
133 mbedtls_snprintf( filename, sizeof(filename), "%s.sig", argv[2] ); in main()
Drsa_sign.c29 #define mbedtls_snprintf snprintf macro
155 mbedtls_snprintf( filename, sizeof(filename), "%s.sig", argv[1] ); in main()
/third_party/mbedtls/tests/src/
Dhelpers.c114 (void) mbedtls_snprintf( mbedtls_test_info.line1, in mbedtls_test_equal()
118 (void) mbedtls_snprintf( mbedtls_test_info.line2, in mbedtls_test_equal()
/third_party/mbedtls/programs/ssl/
Dssl_test_common_source.c304 ret = mbedtls_snprintf( p, n, "%s%s\n", prefix, info ); \ in x509_crt_verify_info()
314 ret = mbedtls_snprintf( p, n, "%sUnknown reason " in x509_crt_verify_info()
/third_party/mbedtls/tests/include/test/
Dhelpers.h45 #define mbedtls_snprintf snprintf macro

12