Searched refs:sbuf (Results 1 – 6 of 6) sorted by relevance
/openssl-master/test/ |
A D | sha_test.c | 20 unsigned char buf[EVP_MAX_MD_SIZE], *sbuf; in test_static_sha_common() local 24 sbuf = (*md)(in, in_len, buf); in test_static_sha_common() 25 if (!TEST_ptr(sbuf) in test_static_sha_common() 26 || !TEST_ptr_eq(sbuf, buf) in test_static_sha_common() 27 || !TEST_mem_eq(sbuf, length, out, length)) in test_static_sha_common() 29 sbuf = (*md)(in, in_len, NULL); in test_static_sha_common() 30 if (!TEST_ptr(sbuf) in test_static_sha_common() 31 || !TEST_ptr_ne(sbuf, buf) in test_static_sha_common() 32 || !TEST_mem_eq(sbuf, length, out, length)) in test_static_sha_common()
|
A D | wpackettest.c | 42 unsigned char sbuf[3]; in test_WPACKET_init() local 90 if (!TEST_true(WPACKET_init_static_len(&pkt, sbuf, sizeof(sbuf), 0)) in test_WPACKET_init() 98 || !TEST_mem_eq(sbuf, written, fixed, sizeof(sbuf)) in test_WPACKET_init() 100 || !TEST_true(WPACKET_init_static_len(&pkt, sbuf, sizeof(sbuf), 1)) in test_WPACKET_init() 107 || !TEST_mem_eq(sbuf, written, alloc, sizeof(alloc))) in test_WPACKET_init() 359 unsigned char sbuf[1024]; in test_WPACKET_init_der() local 368 if (!TEST_true(WPACKET_init_der(&pkt, sbuf, sizeof(sbuf))) in test_WPACKET_init_der() 402 if (!TEST_true(WPACKET_init_der(&pkt, sbuf, sizeof(sbuf)))) in test_WPACKET_init_der()
|
A D | ssl_old_test.c | 2052 char sbuf[1024 * 8]; in doit_localhost() local 2056 memset(sbuf, 0, sizeof(sbuf)); in doit_localhost() 2067 i = sizeof(sbuf); in doit_localhost() 2091 r = BIO_read(s_ssl_bio, sbuf, sizeof(sbuf)); in doit_localhost() 2314 char sbuf[1024 * 8]; in doit_biopair() local 2318 memset(sbuf, 0, sizeof(sbuf)); in doit_biopair() 2329 i = sizeof(sbuf); in doit_biopair() 2353 r = BIO_read(s_ssl_bio, sbuf, sizeof(sbuf)); in doit_biopair() 2537 char *cbuf = NULL, *sbuf = NULL; in doit() local 2748 i = BIO_write(s_bio, sbuf, j); in doit() [all …]
|
A D | acvp_test.c | 211 unsigned char *rbuf = NULL, *sbuf = NULL; in get_ecdsa_sig_rs_bytes() local 226 sbuf = OPENSSL_zalloc(s1_len); in get_ecdsa_sig_rs_bytes() 227 if (rbuf == NULL || sbuf == NULL) in get_ecdsa_sig_rs_bytes() 231 if (BN_bn2binpad(s1, sbuf, s1_len) <= 0) in get_ecdsa_sig_rs_bytes() 234 *s = sbuf; in get_ecdsa_sig_rs_bytes() 241 OPENSSL_free(sbuf); in get_ecdsa_sig_rs_bytes() 568 sbuf = OPENSSL_zalloc(s1_len); in get_dsa_sig_rs_bytes() 569 if (rbuf == NULL || sbuf == NULL) in get_dsa_sig_rs_bytes() 573 if (BN_bn2binpad(s1, sbuf, s1_len) <= 0) in get_dsa_sig_rs_bytes() 576 *s = sbuf; in get_dsa_sig_rs_bytes() [all …]
|
A D | sslapitest.c | 1050 unsigned char sbuf[16000]; in ping_pong_query() local 1070 while ((err = SSL_read(serverssl, &sbuf, sizeof(sbuf))) != sizeof(sbuf)) { in ping_pong_query() 1076 if (!TEST_true(SSL_write(serverssl, sbuf, sizeof(sbuf)) == sizeof(sbuf))) in ping_pong_query() 1091 if (!TEST_mem_eq(cbuf, sizeof(cbuf), sbuf, sizeof(sbuf))) in ping_pong_query() 1512 static unsigned char sbuf[16000]; in execute_cleanse_plaintext() local 1559 if (!TEST_int_eq(SSL_peek(serverssl, &sbuf, sizeof(sbuf)), sizeof(sbuf))) in execute_cleanse_plaintext() 1562 if (!TEST_mem_eq(cbuf, sizeof(cbuf), sbuf, sizeof(sbuf))) in execute_cleanse_plaintext() 1582 memset(sbuf, 0, sizeof(sbuf)); in execute_cleanse_plaintext() 1583 if (!TEST_int_eq(SSL_read(serverssl, &sbuf, sizeof(sbuf)), sizeof(sbuf))) in execute_cleanse_plaintext() 1586 if (!TEST_mem_eq(cbuf, sizeof(cbuf), sbuf, sizeof(cbuf))) in execute_cleanse_plaintext()
|
/openssl-master/apps/ |
A D | s_client.c | 922 sbuf = app_malloc(BUFSIZZ, "sbuf"); in s_client_main() 2183 BIO_read(sbio, sbuf, BUFSIZZ); in s_client_main() 2222 BIO_read(sbio, sbuf, BUFSIZZ); in s_client_main() 2239 BIO_read(sbio, sbuf, BUFSIZZ); in s_client_main() 2276 sbuf[seen] = '\0'; in s_client_main() 2277 if (!strstr(sbuf, "<proceed")) in s_client_main() 2474 if (bytes != 1 || sbuf[0] != 'S') in s_client_main() 2559 strncpy(sbuf, mbuf, 2); in s_client_main() 2560 make_uppercase(sbuf); in s_client_main() 2866 ascii2ebcdic(&(sbuf[sbuf_off]), &(sbuf[sbuf_off]), sbuf_len); in s_client_main() [all …]
|
Completed in 33 milliseconds