Home
last modified time | relevance | path

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

/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.c110 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()
186 || !TEST_true(PEM_write_bio_PUBKEY(membio, pk)) in test_print_key_using_pem()
189 || !TEST_true(PEM_write_bio_PrivateKey(membio, pk, in test_print_key_using_pem()
201 BIO_free(membio); in test_print_key_using_pem()
211 BIO *membio = BIO_new(BIO_s_mem()); in test_print_key_type_using_encoder() local
262 if (!TEST_ptr(membio)) in test_print_key_type_using_encoder()
277 if (!TEST_true(OSSL_ENCODER_to_bio(ctx, membio)) in test_print_key_type_using_encoder()
[all …]
H A Devp_extra_test.c1725 BIO *mdbio = NULL, *membio = NULL; in test_EVP_DigestSignInit() local
1740 membio = BIO_new(BIO_s_mem()); in test_EVP_DigestSignInit()
1742 if (!TEST_ptr(membio) || !TEST_ptr(mdbio)) in test_EVP_DigestSignInit()
1744 BIO_push(mdbio, membio); in test_EVP_DigestSignInit()
1868 BIO_free(membio); in test_EVP_DigestSignInit()
2159 BIO *membio = NULL; in test_EVP_PKCS82PKEY_wrong_tag() local
2168 if (!TEST_ptr(membio = BIO_new(BIO_s_mem())) in test_EVP_PKCS82PKEY_wrong_tag()
2185 BIO_free_all(membio); in test_EVP_PKCS82PKEY_wrong_tag()
2193 BIO *membio = NULL; in test_privatekey_to_pkcs8() local
2198 if (!TEST_ptr(membio = BIO_new(BIO_s_mem())) in test_privatekey_to_pkcs8()
[all …]
H A Dquicapitest.c431 static int compare_with_file(BIO *membio) in compare_with_file() argument
455 while (BIO_gets(membio, buf2, sizeof(buf2)) > 0) in compare_with_file()
461 if (!TEST_int_ge(BIO_seek(membio, 0), 0)) in compare_with_file()
465 if (BIO_gets(membio, buf2, sizeof(buf2)) <= 0) { in compare_with_file()
486 || !TEST_true(BIO_eof(membio))) in compare_with_file()
/openssl/crypto/encode_decode/
H A Ddecoder_lib.c148 BIO *membio; in OSSL_DECODER_from_data() local
156 membio = BIO_new_mem_buf(*pdata, (int)*pdata_len); in OSSL_DECODER_from_data()
157 if (OSSL_DECODER_from_bio(ctx, membio)) { in OSSL_DECODER_from_data()
158 *pdata_len = (size_t)BIO_get_mem_data(membio, pdata); in OSSL_DECODER_from_data()
161 BIO_free(membio); in OSSL_DECODER_from_data()

Completed in 49 milliseconds