Home
last modified time | relevance | path

Searched defs:buf (Results 1 – 25 of 116) sorted by relevance

12345

/mbedtls-3.5.0/library/
Dssl_tls13_generic.c55 unsigned char **buf, in mbedtls_ssl_tls13_fetch_handshake_msg()
162 const unsigned char *buf, in ssl_tls13_parse_certificate_verify()
292 unsigned char *buf; in mbedtls_ssl_tls13_process_certificate_verify() local
387 const unsigned char *buf, in mbedtls_ssl_tls13_parse_certificate()
556 const unsigned char *buf, in mbedtls_ssl_tls13_parse_certificate()
750 unsigned char *buf; in mbedtls_ssl_tls13_process_certificate() local
800 unsigned char *buf, in ssl_tls13_write_certificate_body()
866 unsigned char *buf; in mbedtls_ssl_tls13_write_certificate() local
941 unsigned char *buf, in ssl_tls13_write_certificate_verify_body()
1071 unsigned char *buf; in mbedtls_ssl_tls13_write_certificate_verify() local
[all …]
Dssl_tls13_client.c52 unsigned char *buf, in ssl_tls13_write_supported_versions_ext()
104 const unsigned char *buf, in ssl_tls13_parse_supported_versions_ext()
132 const unsigned char *buf, size_t len) in ssl_tls13_parse_alpn_ext()
265 unsigned char *buf, in ssl_tls13_write_key_share_ext()
375 const unsigned char *buf, in ssl_tls13_parse_hrr_key_share_ext()
457 const unsigned char *buf, in ssl_tls13_parse_key_share_ext()
527 const unsigned char *buf, in ssl_tls13_parse_cookie_ext()
560 unsigned char *buf, in ssl_tls13_write_cookie_ext()
608 unsigned char *buf, in ssl_tls13_write_psk_key_exchange_modes_ext()
793 unsigned char *buf, in ssl_tls13_write_identity()
[all …]
Dssl_tls12_client.c58 unsigned char *buf, in ssl_write_renegotiation_ext()
101 unsigned char *buf, in ssl_write_supported_point_formats_ext()
133 unsigned char *buf, in ssl_write_ecjpake_kkpp_ext()
221 unsigned char *buf, in ssl_write_cid_ext()
264 unsigned char *buf, in ssl_write_max_fragment_length_ext()
298 unsigned char *buf, in ssl_write_encrypt_then_mac_ext()
330 unsigned char *buf, in ssl_write_extended_ms_ext()
362 unsigned char *buf, in ssl_write_session_ticket_ext()
407 unsigned char *buf, in ssl_write_use_srtp_ext()
517 unsigned char *buf, in mbedtls_ssl_tls12_write_client_hello_exts()
[all …]
Dentropy.c234 unsigned char buf[MBEDTLS_ENTROPY_MAX_GATHER]; in entropy_gather_internal() local
306 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_entropy_func() local
438 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_entropy_update_nv_seed() local
462 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_entropy_write_seed_file() local
499 unsigned char buf[MBEDTLS_ENTROPY_MAX_SEED_SIZE]; in mbedtls_entropy_update_seed_file() local
551 static int mbedtls_entropy_source_self_test_gather(unsigned char *buf, size_t buf_len) in mbedtls_entropy_source_self_test_gather()
576 static int mbedtls_entropy_source_self_test_check_bits(const unsigned char *buf, in mbedtls_entropy_source_self_test_check_bits()
659 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE] = { 0 }; in mbedtls_entropy_self_test() local
Dentropy_poll.c93 static int getrandom_wrapper(void *buf, size_t buflen, unsigned int flags) in getrandom_wrapper()
113 static int getrandom_wrapper(void *buf, size_t buflen, unsigned int flags) in getrandom_wrapper()
135 static int sysctl_arnd_wrapper(unsigned char *buf, size_t buflen) in sysctl_arnd_wrapper()
218 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_nv_seed_poll() local
Dssl_client.c41 unsigned char *buf, in ssl_write_hostname_ext()
129 unsigned char *buf, in ssl_write_alpn_ext()
230 unsigned char *buf, in ssl_write_supported_groups_ext()
314 unsigned char *buf, in ssl_write_client_hello_cipher_suites()
431 unsigned char *buf, in ssl_write_client_hello_body()
903 unsigned char *buf; in mbedtls_ssl_write_client_hello() local
Dssl_tls13_server.c62 const unsigned char *buf, in ssl_tls13_parse_key_exchange_modes_ext()
687 unsigned char *buf, in ssl_tls13_write_server_pre_shared_key_ext()
734 const unsigned char *buf, in ssl_tls13_parse_supported_versions_ext()
788 const unsigned char *buf, in ssl_tls13_parse_supported_groups_ext()
849 const unsigned char *buf, in ssl_tls13_parse_key_shares_ext()
1239 const unsigned char *buf, in ssl_tls13_parse_client_hello()
1732 unsigned char *buf = NULL; in ssl_tls13_process_client_hello() local
1804 unsigned char *buf, in ssl_tls13_write_server_hello_supported_versions_ext()
1845 unsigned char *buf, in ssl_tls13_generate_and_write_key_share()
1892 unsigned char *buf, in ssl_tls13_write_key_share_ext()
[all …]
Dssl_tls12_server.c112 const unsigned char *buf, in ssl_parse_renegotiation_info()
186 const unsigned char *buf, in ssl_parse_supported_groups_ext()
251 const unsigned char *buf, in ssl_parse_supported_point_formats()
295 const unsigned char *buf, in ssl_parse_ecjpake_kkpp()
345 const unsigned char *buf, in ssl_parse_max_fragment_length_ext()
364 const unsigned char *buf, in ssl_parse_cid_ext()
429 const unsigned char *buf, in ssl_parse_encrypt_then_mac_ext()
452 const unsigned char *buf, in ssl_parse_extended_ms_ext()
475 unsigned char *buf, in ssl_parse_session_ticket_ext()
549 const unsigned char *buf, in ssl_parse_use_srtp_ext()
[all …]
Decdh.c278 unsigned char *buf, size_t blen, in ecdh_make_params_internal()
341 unsigned char *buf, size_t blen, in mbedtls_ecdh_make_params()
374 const unsigned char **buf, in ecdh_read_params_internal()
389 const unsigned char **buf, in mbedtls_ecdh_read_params()
497 unsigned char *buf, size_t blen, in ecdh_make_public_internal()
541 unsigned char *buf, size_t blen, in mbedtls_ecdh_make_public()
572 const unsigned char *buf, size_t blen) in ecdh_read_public_internal()
593 const unsigned char *buf, size_t blen) in mbedtls_ecdh_read_public()
614 size_t *olen, unsigned char *buf, in ecdh_calc_secret_internal()
669 unsigned char *buf, size_t blen, in mbedtls_ecdh_calc_secret()
Dplatform.c234 static void platform_setbuf_uninit(FILE *stream, char *buf) in platform_setbuf_uninit()
244 int mbedtls_platform_set_setbuf(void (*setbuf_func)(FILE *stream, char *buf)) in mbedtls_platform_set_setbuf()
305 int mbedtls_platform_std_nv_seed_read(unsigned char *buf, size_t buf_len) in mbedtls_platform_std_nv_seed_read()
327 int mbedtls_platform_std_nv_seed_write(unsigned char *buf, size_t buf_len) in mbedtls_platform_std_nv_seed_write()
354 static int platform_nv_seed_read_uninit(unsigned char *buf, size_t buf_len) in platform_nv_seed_read_uninit()
368 static int platform_nv_seed_write_uninit(unsigned char *buf, size_t buf_len) in platform_nv_seed_write_uninit()
384 int (*nv_seed_read_func)(unsigned char *buf, size_t buf_len), in mbedtls_platform_set_nv_seed()
385 int (*nv_seed_write_func)(unsigned char *buf, size_t buf_len)) in mbedtls_platform_set_nv_seed()
Dx509write_csr.c94 unsigned char *buf; in mbedtls_x509write_csr_set_subject_alternative_name() local
190 unsigned char buf[4] = { 0 }; in mbedtls_x509write_csr_set_key_usage() local
214 unsigned char buf[4] = { 0 }; in mbedtls_x509write_csr_set_ns_cert_type() local
236 unsigned char *buf, in x509write_csr_der_internal()
389 int mbedtls_x509write_csr_der(mbedtls_x509write_csr *ctx, unsigned char *buf, in mbedtls_x509write_csr_der()
414 int mbedtls_x509write_csr_pem(mbedtls_x509write_csr *ctx, unsigned char *buf, size_t size, in mbedtls_x509write_csr_pem()
Derror.c789 void mbedtls_strerror(int ret, char *buf, size_t buflen) in mbedtls_strerror()
864 void mbedtls_strerror(int ret, char *buf, size_t buflen) in mbedtls_strerror()
Dx509_csr.c235 const unsigned char *buf, size_t buflen) in mbedtls_x509_csr_parse_der()
401 int mbedtls_x509_csr_parse(mbedtls_x509_csr *csr, const unsigned char *buf, size_t buflen) in mbedtls_x509_csr_parse()
455 unsigned char *buf; in mbedtls_x509_csr_parse_file() local
476 int mbedtls_x509_csr_info(char *buf, size_t size, const char *prefix, in mbedtls_x509_csr_info()
Dx509write_crt.c169 unsigned char buf[9]; in mbedtls_x509write_crt_set_basic_constraints() local
204 unsigned char buf[MBEDTLS_MPI_MAX_SIZE * 2 + 20]; /* tag, length + 2xMPI */ in mbedtls_x509write_crt_set_key_identifier() local
288 unsigned char buf[5] = { 0 }, ku[2] = { 0 }; in mbedtls_x509write_crt_set_key_usage() local
329 unsigned char buf[256]; in mbedtls_x509write_crt_set_ext_key_usage() local
370 unsigned char buf[4] = { 0 }; in mbedtls_x509write_crt_set_ns_cert_type() local
420 unsigned char *buf, size_t size, in mbedtls_x509write_crt_der()
652 unsigned char *buf, size_t size, in mbedtls_x509write_crt_pem()
Dpkwrite.c110 unsigned char buf[MBEDTLS_ECP_MAX_PT_LEN]; in pk_write_ec_pubkey() local
212 int mbedtls_pk_write_pubkey_der(const mbedtls_pk_context *key, unsigned char *buf, size_t size) in mbedtls_pk_write_pubkey_der()
309 int mbedtls_pk_write_key_der(const mbedtls_pk_context *key, unsigned char *buf, size_t size) in mbedtls_pk_write_key_der()
483 int mbedtls_pk_write_pubkey_pem(const mbedtls_pk_context *key, unsigned char *buf, size_t size) in mbedtls_pk_write_pubkey_pem()
503 int mbedtls_pk_write_key_pem(const mbedtls_pk_context *key, unsigned char *buf, size_t size) in mbedtls_pk_write_key_pem()
Dnet_sockets.c73 #define read(fd, buf, len) recv(fd, (char *) (buf), (int) (len), 0) argument
74 #define write(fd, buf, len) send(fd, (char *) (buf), (int) (len), 0) argument
365 char buf[1] = { 0 }; in mbedtls_net_accept() local
556 int mbedtls_net_recv(void *ctx, unsigned char *buf, size_t len) in mbedtls_net_recv()
597 int mbedtls_net_recv_timeout(void *ctx, unsigned char *buf, in mbedtls_net_recv_timeout()
645 int mbedtls_net_send(void *ctx, const unsigned char *buf, size_t len) in mbedtls_net_send()
Dx509_crl.c295 const unsigned char *buf, size_t buflen) in mbedtls_x509_crl_parse_der()
516 int mbedtls_x509_crl_parse(mbedtls_x509_crl *chain, const unsigned char *buf, size_t buflen) in mbedtls_x509_crl_parse()
582 unsigned char *buf; in mbedtls_x509_crl_parse_file() local
606 int mbedtls_x509_crl_info(char *buf, size_t size, const char *prefix, in mbedtls_x509_crl_info()
Dpem.c262 unsigned char *buf, size_t buflen, in pem_des_decrypt()
292 unsigned char *buf, size_t buflen, in pem_des3_decrypt()
324 unsigned char *buf, size_t buflen, in pem_aes_decrypt()
359 unsigned char *buf; in mbedtls_pem_read_buffer() local
582 unsigned char *buf, size_t buf_len, size_t *olen) in mbedtls_pem_write_buffer()
/mbedtls-3.5.0/3rdparty/everest/library/
Dx25519.c60 unsigned char *buf, size_t blen, in mbedtls_x25519_make_params()
91 const unsigned char **buf, const unsigned char *end ) in mbedtls_x25519_read_params()
120 unsigned char *buf, size_t blen, in mbedtls_x25519_calc_secret()
146 unsigned char *buf, size_t blen, in mbedtls_x25519_make_public()
175 const unsigned char *buf, size_t blen ) in mbedtls_x25519_read_public()
Deverest.c49 unsigned char *buf, size_t blen, in mbedtls_everest_make_params()
58 const unsigned char **buf, in mbedtls_everest_read_params()
77 unsigned char *buf, size_t blen, in mbedtls_everest_make_public()
86 const unsigned char *buf, size_t blen ) in mbedtls_everest_read_public()
93 unsigned char *buf, size_t blen, in mbedtls_everest_calc_secret()
/mbedtls-3.5.0/programs/fuzz/
Dcommon.c25 int dummy_send(void *ctx, const unsigned char *buf, size_t len) in dummy_send()
38 int fuzz_recv(void *ctx, unsigned char *buf, size_t len) in fuzz_recv()
99 int fuzz_recv_timeout(void *ctx, unsigned char *buf, size_t len, in fuzz_recv_timeout()
/mbedtls-3.5.0/programs/ssl/
Dssl_test_common_source.c147 unsigned char const *buf, size_t len) in ssl_check_record()
210 int recv_cb(void *ctx, unsigned char *buf, size_t len) in recv_cb()
238 int recv_timeout_cb(void *ctx, unsigned char *buf, size_t len, in recv_timeout_cb()
263 int send_cb(void *ctx, unsigned char const *buf, size_t len) in send_cb()
334 int x509_crt_verify_info(char *buf, size_t size, const char *prefix, in x509_crt_verify_info()
Dssl_mail_client.c165 unsigned char buf[1024]; in do_handshake() local
219 static int write_ssl_data(mbedtls_ssl_context *ssl, unsigned char *buf, size_t len) in write_ssl_data()
234 static int write_ssl_and_get_response(mbedtls_ssl_context *ssl, unsigned char *buf, size_t len) in write_ssl_and_get_response()
287 static int write_and_get_response(mbedtls_net_context *sock_fd, unsigned char *buf, size_t len) in write_and_get_response()
342 unsigned char buf[sizeof(base) + 2]; in main() local
344 unsigned char buf[1024]; in main() local
/mbedtls-3.5.0/tests/src/test_helpers/
Dssl_helpers.c131 void mbedtls_test_ssl_buffer_init(mbedtls_test_ssl_buffer *buf) in mbedtls_test_ssl_buffer_init()
136 int mbedtls_test_ssl_buffer_setup(mbedtls_test_ssl_buffer *buf, in mbedtls_test_ssl_buffer_setup()
149 void mbedtls_test_ssl_buffer_free(mbedtls_test_ssl_buffer *buf) in mbedtls_test_ssl_buffer_free()
158 int mbedtls_test_ssl_buffer_put(mbedtls_test_ssl_buffer *buf, in mbedtls_test_ssl_buffer_put()
202 int mbedtls_test_ssl_buffer_get(mbedtls_test_ssl_buffer *buf, in mbedtls_test_ssl_buffer_get()
409 const unsigned char *buf, size_t len) in mbedtls_test_mock_tcp_send_b()
420 int mbedtls_test_mock_tcp_recv_b(void *ctx, unsigned char *buf, size_t len) in mbedtls_test_mock_tcp_recv_b()
432 const unsigned char *buf, size_t len) in mbedtls_test_mock_tcp_send_nb()
447 int mbedtls_test_mock_tcp_recv_nb(void *ctx, unsigned char *buf, size_t len) in mbedtls_test_mock_tcp_recv_nb()
500 const unsigned char *buf, size_t len) in mbedtls_test_mock_tcp_send_msg()
[all …]
/mbedtls-3.5.0/programs/util/
Dpem2der.c117 static int load_file(const char *path, unsigned char **buf, size_t *n) in load_file()
158 static int write_file(const char *path, unsigned char *buf, size_t n) in write_file()
181 char buf[1024]; in main() local

12345