Home
last modified time | relevance | path

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

/system/core/adb/crypto/
Dkey.cpp29 bssl::UniquePtr<BIO> bio(BIO_new(BIO_s_mem())); in ToPEMString() local
30 int rc = PEM_write_bio_PKCS8PrivateKey(bio.get(), pkey, nullptr, nullptr, 0, nullptr, nullptr); in ToPEMString()
37 BIO_get_mem_ptr(bio.get(), &mem); in ToPEMString()
Dx509_generator.cpp105 bssl::UniquePtr<BIO> bio(BIO_new(BIO_s_mem())); in X509ToPEMString() local
106 int rc = PEM_write_bio_X509(bio.get(), x509); in X509ToPEMString()
113 BIO_get_mem_ptr(bio.get(), &mem); in X509ToPEMString()
/system/core/adb/tls/
Dtls_connection.cpp109 bssl::UniquePtr<BIO> bio(BIO_new_mem_buf(pem.data(), pem.size())); in EvpPkeyFromPEM() local
110 return bssl::UniquePtr<EVP_PKEY>(PEM_read_bio_PrivateKey(bio.get(), nullptr, nullptr, nullptr)); in EvpPkeyFromPEM()
115 bssl::UniquePtr<BIO> bio(BIO_new_mem_buf(pem.data(), pem.size())); in BufferFromPEM() local
121 if (!PEM_read_bio(bio.get(), &name, &header, &data, &data_len)) { in BufferFromPEM()