Home
last modified time | relevance | path

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

/freebsd-14.2/crypto/openssl/test/
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.c1370 BIO *mdbio = NULL, *membio = NULL; in test_EVP_DigestSignInit() local
1385 membio = BIO_new(BIO_s_mem()); in test_EVP_DigestSignInit()
1387 if (!TEST_ptr(membio) || !TEST_ptr(mdbio)) in test_EVP_DigestSignInit()
1389 BIO_push(mdbio, membio); in test_EVP_DigestSignInit()
1513 BIO_free(membio); in test_EVP_DigestSignInit()
1804 BIO *membio = NULL; in test_EVP_PKCS82PKEY_wrong_tag() local
1813 if (!TEST_ptr(membio = BIO_new(BIO_s_mem())) in test_EVP_PKCS82PKEY_wrong_tag()
1830 BIO_free_all(membio); in test_EVP_PKCS82PKEY_wrong_tag()
1838 BIO *membio = NULL; in test_privatekey_to_pkcs8() local
1843 if (!TEST_ptr(membio = BIO_new(BIO_s_mem())) in test_privatekey_to_pkcs8()
[all …]
/freebsd-14.2/crypto/openssl/crypto/encode_decode/
H A Ddecoder_lib.c147 BIO *membio; in OSSL_DECODER_from_data() local
155 membio = BIO_new_mem_buf(*pdata, (int)*pdata_len); in OSSL_DECODER_from_data()
156 if (OSSL_DECODER_from_bio(ctx, membio)) { in OSSL_DECODER_from_data()
157 *pdata_len = (size_t)BIO_get_mem_data(membio, pdata); in OSSL_DECODER_from_data()
160 BIO_free(membio); in OSSL_DECODER_from_data()