Lines Matching refs:key_bio

612     BIO *key_bio = NULL;  in test_d2i_PrivateKey_ex()  local
618 if (!TEST_ptr(key_bio = BIO_new_mem_buf(keydata[id].kder, keydata[id].size))) in test_d2i_PrivateKey_ex()
620 if (!TEST_ptr_null(pkey = PEM_read_bio_PrivateKey(key_bio, NULL, NULL, NULL))) in test_d2i_PrivateKey_ex()
624 if (!TEST_int_ge(BIO_seek(key_bio, 0), 0)) in test_d2i_PrivateKey_ex()
626 ok = TEST_ptr(pkey = d2i_PrivateKey_bio(key_bio, NULL)); in test_d2i_PrivateKey_ex()
632 BIO_free(key_bio); in test_d2i_PrivateKey_ex()
642 BIO *key_bio = NULL; in test_PEM_read_bio_negative() local
645 if (!TEST_ptr(key_bio = BIO_new_mem_buf(keydata[testid].kder, keydata[testid].size))) in test_PEM_read_bio_negative()
648 if (!TEST_ptr_null(pkey = PEM_read_bio_PrivateKey(key_bio, NULL, NULL, NULL))) in test_PEM_read_bio_negative()
654 if (!TEST_int_ge(BIO_seek(key_bio, 0), 0)) in test_PEM_read_bio_negative()
657 if (!TEST_ptr_null(pkey = PEM_read_bio_PrivateKey(key_bio, NULL, NULL, NULL))) in test_PEM_read_bio_negative()
667 BIO_free(key_bio); in test_PEM_read_bio_negative()
679 BIO *key_bio = BIO_new(BIO_s_mem()); in test_PEM_read_bio_negative_wrong_password() local
687 if (!TEST_ptr(key_bio)) in test_PEM_read_bio_negative_wrong_password()
695 !TEST_true(PEM_write_bio_PrivateKey(key_bio, write_pkey, EVP_aes_256_cbc(), in test_PEM_read_bio_negative_wrong_password()
700 read_pkey = PEM_read_bio_PrivateKey(key_bio, NULL, NULL, NULL); in test_PEM_read_bio_negative_wrong_password()
712 BIO_free(key_bio); in test_PEM_read_bio_negative_wrong_password()