Home
last modified time | relevance | path

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

12345

/mbedtls-latest/library/
Dssl_tls13_client.c47 unsigned char *buf, in ssl_tls13_write_supported_versions_ext()
99 const unsigned char *buf, in ssl_tls13_parse_supported_versions_ext()
128 const unsigned char *buf, size_t len) in ssl_tls13_parse_alpn_ext()
265 unsigned char *buf, in ssl_tls13_write_key_share_ext()
377 const unsigned char *buf, in ssl_tls13_parse_hrr_key_share_ext()
466 const unsigned char *buf, in ssl_tls13_parse_key_share_ext()
530 const unsigned char *buf, in ssl_tls13_parse_cookie_ext()
563 unsigned char *buf, in ssl_tls13_write_cookie_ext()
611 unsigned char *buf, in ssl_tls13_write_psk_key_exchange_modes_ext()
794 unsigned char *buf, in ssl_tls13_write_identity()
[all …]
Dssl_tls13_generic.c59 unsigned char **buf, in mbedtls_ssl_tls13_fetch_handshake_msg()
95 const unsigned char *buf, const unsigned char *end, in mbedtls_ssl_tls13_is_supported_versions_ext_present_in_exts()
223 const unsigned char *buf, in ssl_tls13_parse_certificate_verify()
355 unsigned char *buf; in mbedtls_ssl_tls13_process_certificate_verify() local
451 const unsigned char *buf, in mbedtls_ssl_tls13_parse_certificate()
622 const unsigned char *buf, in mbedtls_ssl_tls13_parse_certificate()
710 unsigned char *buf; in mbedtls_ssl_tls13_process_certificate() local
761 unsigned char *buf, in ssl_tls13_write_certificate_body()
827 unsigned char *buf; in mbedtls_ssl_tls13_write_certificate() local
900 unsigned char *buf, in ssl_tls13_write_certificate_verify_body()
[all …]
Dssl_tls12_client.c52 unsigned char *buf, in ssl_write_renegotiation_ext()
96 unsigned char *buf, in ssl_write_supported_point_formats_ext()
129 unsigned char *buf, in ssl_write_ecjpake_kkpp_ext()
217 unsigned char *buf, in ssl_write_cid_ext()
260 unsigned char *buf, in ssl_write_max_fragment_length_ext()
294 unsigned char *buf, in ssl_write_encrypt_then_mac_ext()
326 unsigned char *buf, in ssl_write_extended_ms_ext()
358 unsigned char *buf, in ssl_write_session_ticket_ext()
404 unsigned char *buf, in ssl_write_use_srtp_ext()
514 unsigned char *buf, in mbedtls_ssl_tls12_write_client_hello_exts()
[all …]
Dentropy.c203 unsigned char buf[MBEDTLS_ENTROPY_MAX_GATHER]; in entropy_gather_internal() local
275 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_entropy_func() local
386 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_entropy_update_nv_seed() local
410 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_entropy_write_seed_file() local
447 unsigned char buf[MBEDTLS_ENTROPY_MAX_SEED_SIZE]; in mbedtls_entropy_update_seed_file() local
499 static int mbedtls_entropy_source_self_test_gather(unsigned char *buf, size_t buf_len) in mbedtls_entropy_source_self_test_gather()
524 static int mbedtls_entropy_source_self_test_check_bits(const unsigned char *buf, in mbedtls_entropy_source_self_test_check_bits()
607 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE] = { 0 }; in mbedtls_entropy_self_test() local
Dentropy_poll.c85 static int getrandom_wrapper(void *buf, size_t buflen, unsigned int flags) in getrandom_wrapper()
105 static int getrandom_wrapper(void *buf, size_t buflen, unsigned int flags) in getrandom_wrapper()
127 static int sysctl_arnd_wrapper(unsigned char *buf, size_t buflen) in sysctl_arnd_wrapper()
210 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_nv_seed_poll() local
Dpkwrite.c62 static int pk_write_rsa_der(unsigned char **p, unsigned char *buf, in pk_write_rsa_der()
98 uint8_t buf[PK_MAX_EC_PUBLIC_KEY_SIZE]; in pk_write_ec_pubkey() local
123 unsigned char buf[PK_MAX_EC_PUBLIC_KEY_SIZE]; in pk_write_ec_pubkey() local
263 static int pk_write_ec_rfc8410_der(unsigned char **p, unsigned char *buf, in pk_write_ec_rfc8410_der()
306 static int pk_write_ec_der(unsigned char **p, unsigned char *buf, in pk_write_ec_der()
445 int mbedtls_pk_write_pubkey_der(const mbedtls_pk_context *key, unsigned char *buf, size_t size) in mbedtls_pk_write_pubkey_der()
512 int mbedtls_pk_write_key_der(const mbedtls_pk_context *key, unsigned char *buf, size_t size) in mbedtls_pk_write_key_der()
552 int mbedtls_pk_write_pubkey_pem(const mbedtls_pk_context *key, unsigned char *buf, size_t size) in mbedtls_pk_write_pubkey_pem()
579 int mbedtls_pk_write_key_pem(const mbedtls_pk_context *key, unsigned char *buf, size_t size) in mbedtls_pk_write_key_pem()
Dx509_csr.c266 const unsigned char *buf, size_t buflen, in mbedtls_x509_csr_parse_der_internal()
435 const unsigned char *buf, size_t buflen) in mbedtls_x509_csr_parse_der()
444 const unsigned char *buf, size_t buflen, in mbedtls_x509_csr_parse_der_with_ext_cb()
454 int mbedtls_x509_csr_parse(mbedtls_x509_csr *csr, const unsigned char *buf, size_t buflen) in mbedtls_x509_csr_parse()
508 unsigned char *buf; in mbedtls_x509_csr_parse_file() local
528 int mbedtls_x509_csr_info(char *buf, size_t size, const char *prefix, in mbedtls_x509_csr_info()
Dssl_tls13_server.c110 const unsigned char *buf, in ssl_tls13_parse_key_exchange_modes_ext()
734 unsigned char *buf, in ssl_tls13_write_server_pre_shared_key_ext()
781 const unsigned char *buf, in ssl_tls13_parse_supported_versions_ext()
840 const unsigned char *buf, in ssl_tls13_parse_supported_groups_ext()
902 const unsigned char *buf, in ssl_tls13_parse_key_shares_ext()
1250 const unsigned char *buf, in ssl_tls13_parse_client_hello()
1951 unsigned char *buf = NULL; in ssl_tls13_process_client_hello() local
2043 unsigned char *buf, in ssl_tls13_write_server_hello_supported_versions_ext()
2084 unsigned char *buf, in ssl_tls13_generate_and_write_key_share()
2132 unsigned char *buf, in ssl_tls13_write_key_share_ext()
[all …]
Dssl_client.c27 unsigned char *buf, in ssl_write_hostname_ext()
115 unsigned char *buf, in ssl_write_alpn_ext()
218 unsigned char *buf, in ssl_write_supported_groups_ext()
319 unsigned char *buf, in ssl_write_client_hello_cipher_suites()
437 unsigned char *buf, in ssl_write_client_hello_body()
916 unsigned char *buf; in mbedtls_ssl_write_client_hello() local
Dssl_tls12_server.c108 const unsigned char *buf, in ssl_parse_renegotiation_info()
182 const unsigned char *buf, in ssl_parse_supported_groups_ext()
247 const unsigned char *buf, in ssl_parse_supported_point_formats()
291 const unsigned char *buf, in ssl_parse_ecjpake_kkpp()
341 const unsigned char *buf, in ssl_parse_max_fragment_length_ext()
360 const unsigned char *buf, in ssl_parse_cid_ext()
425 const unsigned char *buf, in ssl_parse_encrypt_then_mac_ext()
448 const unsigned char *buf, in ssl_parse_extended_ms_ext()
471 unsigned char *buf, in ssl_parse_session_ticket_ext()
545 const unsigned char *buf, in ssl_parse_use_srtp_ext()
[all …]
Decdh.c275 unsigned char *buf, size_t blen, in ecdh_make_params_internal()
338 unsigned char *buf, size_t blen, in mbedtls_ecdh_make_params()
371 const unsigned char **buf, in ecdh_read_params_internal()
386 const unsigned char **buf, in mbedtls_ecdh_read_params()
494 unsigned char *buf, size_t blen, in ecdh_make_public_internal()
538 unsigned char *buf, size_t blen, in mbedtls_ecdh_make_public()
569 const unsigned char *buf, size_t blen) in ecdh_read_public_internal()
590 const unsigned char *buf, size_t blen) in mbedtls_ecdh_read_public()
611 size_t *olen, unsigned char *buf, in ecdh_calc_secret_internal()
666 unsigned char *buf, size_t blen, in mbedtls_ecdh_calc_secret()
Dplatform.c222 static void platform_setbuf_uninit(FILE *stream, char *buf) in platform_setbuf_uninit()
232 int mbedtls_platform_set_setbuf(void (*setbuf_func)(FILE *stream, char *buf)) in mbedtls_platform_set_setbuf()
293 int mbedtls_platform_std_nv_seed_read(unsigned char *buf, size_t buf_len) in mbedtls_platform_std_nv_seed_read()
315 int mbedtls_platform_std_nv_seed_write(unsigned char *buf, size_t buf_len) in mbedtls_platform_std_nv_seed_write()
342 static int platform_nv_seed_read_uninit(unsigned char *buf, size_t buf_len) in platform_nv_seed_read_uninit()
356 static int platform_nv_seed_write_uninit(unsigned char *buf, size_t buf_len) in platform_nv_seed_write_uninit()
372 int (*nv_seed_read_func)(unsigned char *buf, size_t buf_len), in mbedtls_platform_set_nv_seed()
373 int (*nv_seed_write_func)(unsigned char *buf, size_t buf_len)) in mbedtls_platform_set_nv_seed()
Derror.c790 void mbedtls_strerror(int ret, char *buf, size_t buflen) in mbedtls_strerror()
865 void mbedtls_strerror(int ret, char *buf, size_t buflen) in mbedtls_strerror()
Dx509write_csr.c89 unsigned char buf[4] = { 0 }; in mbedtls_x509write_csr_set_key_usage() local
113 unsigned char buf[4] = { 0 }; in mbedtls_x509write_csr_set_ns_cert_type() local
135 unsigned char *buf, in x509write_csr_der_internal()
288 int mbedtls_x509write_csr_der(mbedtls_x509write_csr *ctx, unsigned char *buf, in mbedtls_x509write_csr_der()
313 int mbedtls_x509write_csr_pem(mbedtls_x509write_csr *ctx, unsigned char *buf, size_t size, in mbedtls_x509write_csr_pem()
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()
664 unsigned char *buf, size_t size, in mbedtls_x509write_crt_pem()
Dpem.c154 unsigned char *buf, size_t buflen, in pem_des_decrypt()
184 unsigned char *buf, size_t buflen, in pem_des3_decrypt()
216 unsigned char *buf, size_t buflen, in pem_aes_decrypt()
274 unsigned char *buf; in mbedtls_pem_read_buffer() local
500 unsigned char *buf, size_t buf_len, size_t *olen) in mbedtls_pem_write_buffer()
Dnet_sockets.c56 #define read(fd, buf, len) recv(fd, (char *) (buf), (int) (len), 0) argument
57 #define write(fd, buf, len) send(fd, (char *) (buf), (int) (len), 0) argument
349 char buf[1] = { 0 }; in mbedtls_net_accept() local
540 int mbedtls_net_recv(void *ctx, unsigned char *buf, size_t len) in mbedtls_net_recv()
581 int mbedtls_net_recv_timeout(void *ctx, unsigned char *buf, in mbedtls_net_recv_timeout()
629 int mbedtls_net_send(void *ctx, const unsigned char *buf, size_t len) in mbedtls_net_send()
/mbedtls-latest/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-latest/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-latest/programs/ssl/
Dssl_test_common_source.c135 unsigned char const *buf, size_t len) in ssl_check_record()
198 static int recv_cb(void *ctx, unsigned char *buf, size_t len) in recv_cb()
226 static int recv_timeout_cb(void *ctx, unsigned char *buf, size_t len, in recv_timeout_cb()
251 static int send_cb(void *ctx, unsigned char const *buf, size_t len) in send_cb()
322 static int x509_crt_verify_info(char *buf, size_t size, const char *prefix, in x509_crt_verify_info()
Dssl_mail_client.c153 unsigned char buf[1024]; in do_handshake() local
207 static int write_ssl_data(mbedtls_ssl_context *ssl, unsigned char *buf, size_t len) in write_ssl_data()
222 static int write_ssl_and_get_response(mbedtls_ssl_context *ssl, unsigned char *buf, size_t len) in write_ssl_and_get_response()
275 static int write_and_get_response(mbedtls_net_context *sock_fd, unsigned char *buf, size_t len) in write_and_get_response()
330 unsigned char buf[sizeof(base) + 2]; in main() local
332 unsigned char buf[1024]; in main() local
/mbedtls-latest/tests/src/test_helpers/
Dssl_helpers.c110 void mbedtls_test_ssl_buffer_init(mbedtls_test_ssl_buffer *buf) in mbedtls_test_ssl_buffer_init()
115 int mbedtls_test_ssl_buffer_setup(mbedtls_test_ssl_buffer *buf, in mbedtls_test_ssl_buffer_setup()
128 void mbedtls_test_ssl_buffer_free(mbedtls_test_ssl_buffer *buf) in mbedtls_test_ssl_buffer_free()
137 int mbedtls_test_ssl_buffer_put(mbedtls_test_ssl_buffer *buf, in mbedtls_test_ssl_buffer_put()
181 int mbedtls_test_ssl_buffer_get(mbedtls_test_ssl_buffer *buf, in mbedtls_test_ssl_buffer_get()
390 const unsigned char *buf, size_t len) in mbedtls_test_mock_tcp_send_b()
401 int mbedtls_test_mock_tcp_recv_b(void *ctx, unsigned char *buf, size_t len) in mbedtls_test_mock_tcp_recv_b()
413 const unsigned char *buf, size_t len) in mbedtls_test_mock_tcp_send_nb()
428 int mbedtls_test_mock_tcp_recv_nb(void *ctx, unsigned char *buf, size_t len) in mbedtls_test_mock_tcp_recv_nb()
483 const unsigned char *buf, size_t len) in mbedtls_test_mock_tcp_send_msg()
[all …]
/mbedtls-latest/programs/util/
Dpem2der.c105 static int load_file(const char *path, unsigned char **buf, size_t *n) in load_file()
146 static int write_file(const char *path, unsigned char *buf, size_t n) in write_file()
169 char buf[1024]; in main() local
/mbedtls-latest/tests/src/
Dpsa_crypto_helpers.c165 int mbedtls_test_inject_entropy_seed_read(unsigned char *buf, size_t len) in mbedtls_test_inject_entropy_seed_read()
179 int mbedtls_test_inject_entropy_seed_write(unsigned char *buf, size_t len) in mbedtls_test_inject_entropy_seed_write()
191 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_test_inject_entropy_restore() local

12345