Searched refs:rsa_key_pair (Results 1 – 3 of 3) sorted by relevance
/system/webservd/webservd/ |
D | utils.cc | 86 auto rsa_key_pair = std::unique_ptr<RSA, void(*)(RSA*)>{RSA_new(), RSA_free}; in GenerateRSAKeyPair() 87 CHECK(rsa_key_pair.get()); in GenerateRSAKeyPair() 91 CHECK(RSA_generate_key_ex(rsa_key_pair.get(), key_length_bits, big_num.get(), in GenerateRSAKeyPair() 93 return rsa_key_pair; in GenerateRSAKeyPair() 96 brillo::SecureBlob StoreRSAPrivateKey(RSA* rsa_key_pair) { in StoreRSAPrivateKey() argument 100 CHECK(PEM_write_bio_RSAPrivateKey(bio.get(), rsa_key_pair, nullptr, nullptr, in StoreRSAPrivateKey()
|
D | server.cc | 190 auto rsa_key_pair = GenerateRSAKeyPair(kKeyLengthBits); in InitTlsData() local 195 private_key = StoreRSAPrivateKey(rsa_key_pair.get()); in InitTlsData() 202 CHECK(EVP_PKEY_assign_RSA(key.get(), rsa_key_pair.release())); in InitTlsData()
|
D | utils.h | 41 brillo::SecureBlob StoreRSAPrivateKey(RSA* rsa_key_pair);
|