Home
last modified time | relevance | path

Searched refs:membio (Results 1 – 7 of 7) sorted by relevance

/freebsd/crypto/openssl/test/testutil/
H A Dcompare.c24 int compare_with_reference_file(BIO *membio, const char *reffile) in compare_with_reference_file() argument
42 while (BIO_gets(membio, buf2, sizeof(buf2)) > 0) in compare_with_reference_file()
48 if (!TEST_int_ge(BIO_seek(membio, 0), 0)) in compare_with_reference_file()
54 if (BIO_gets(membio, buf2, sizeof(buf2)) <= 0) { in compare_with_reference_file()
81 || !TEST_true(BIO_eof(membio))) in compare_with_reference_file()
/freebsd/crypto/openssl/test/
H A Dbio_meth_test.c17 BIO *membio = NULL, *bio1 = NULL, *bio2 = NULL, *bio3 = NULL; in test_bio_meth() local
29 || !TEST_ptr(membio = BIO_new(BIO_s_mem()))) in test_bio_meth()
34 BIO_set_next(bio1, membio); in test_bio_meth()
45 if (!TEST_ptr_eq(BIO_find_type(bio3, BIO_TYPE_MEM), membio) in test_bio_meth()
57 BIO_free(membio); in test_bio_meth()
H A Devp_pkey_provided_test.c54 static int compare_with_file(const char *alg, int type, BIO *membio) in compare_with_file() argument
110 len = BIO_get_mem_data(membio, &memdata); in compare_with_file()
126 (void)BIO_reset(membio); in compare_with_file()
143 BIO *membio = BIO_new(BIO_s_mem()); in test_print_key_using_pem() local
146 if (!TEST_ptr(membio)) in test_print_key_using_pem()
183 || !TEST_int_gt(EVP_PKEY_print_private(membio, pk, 0, NULL), 0) in test_print_key_using_pem()
184 || !TEST_true(compare_with_file(alg, PRIV_TEXT, membio)) in test_print_key_using_pem()
186 || !TEST_true(PEM_write_bio_PUBKEY(membio, pk)) in test_print_key_using_pem()
187 || !TEST_true(compare_with_file(alg, PUB_PEM, membio)) in test_print_key_using_pem()
189 || !TEST_true(PEM_write_bio_PrivateKey(membio, pk, in test_print_key_using_pem()
[all …]
H A Devp_extra_test.c1867 BIO *mdbio = NULL, *membio = NULL; in test_EVP_DigestSignInit() local
1882 membio = BIO_new(BIO_s_mem()); in test_EVP_DigestSignInit()
1884 if (!TEST_ptr(membio) || !TEST_ptr(mdbio)) in test_EVP_DigestSignInit()
1886 BIO_push(mdbio, membio); in test_EVP_DigestSignInit()
2010 BIO_free(membio); in test_EVP_DigestSignInit()
2367 BIO *membio = NULL; in test_EVP_PKCS82PKEY_wrong_tag() local
2376 if (!TEST_ptr(membio = BIO_new(BIO_s_mem())) in test_EVP_PKCS82PKEY_wrong_tag()
2378 || !TEST_int_gt(i2d_PKCS8PrivateKey_bio(membio, pkey, NULL, in test_EVP_PKCS82PKEY_wrong_tag()
2381 || !TEST_int_gt(BIO_get_mem_data(membio, &membuf), 0) in test_EVP_PKCS82PKEY_wrong_tag()
2382 || !TEST_ptr(p8inf = d2i_PKCS8_PRIV_KEY_INFO_bio(membio, NULL)) in test_EVP_PKCS82PKEY_wrong_tag()
[all …]
H A Dtestutil.h653 int compare_with_reference_file(BIO *membio, const char *reffile);
H A Dquicapitest.c495 static int find_new_token_data(BIO *membio) in find_new_token_data() argument
519 && BIO_gets(membio, buf, sizeof(buf)) > 0) { in find_new_token_data()
/freebsd/crypto/openssl/crypto/encode_decode/
H A Ddecoder_lib.c150 BIO *membio; in OSSL_DECODER_from_data() local
158 membio = BIO_new_mem_buf(*pdata, (int)*pdata_len); in OSSL_DECODER_from_data()
159 if (OSSL_DECODER_from_bio(ctx, membio)) { in OSSL_DECODER_from_data()
160 *pdata_len = (size_t)BIO_get_mem_data(membio, pdata); in OSSL_DECODER_from_data()
163 BIO_free(membio); in OSSL_DECODER_from_data()