#include "util/crypto/rsa_private_key.h"
#include <stdint.h>
#include <algorithm>
#include <memory>
#include <utility>
#include "openssl/bn.h"
#include "openssl/bytestring.h"
#include "openssl/evp.h"
#include "openssl/mem.h"
#include "openssl/rsa.h"
#include "util/crypto/openssl_util.h"
#include "util/osp_logging.h"
namespace openscreen {
RSAPrivateKey::~RSAPrivateKey() = default;
ErrorOr<RSAPrivateKey> RSAPrivateKey::Create(uint16_t num_bits) { … }
ErrorOr<RSAPrivateKey> RSAPrivateKey::CreateFromPrivateKeyInfo(
const std::vector<uint8_t>& input) { … }
ErrorOr<RSAPrivateKey> RSAPrivateKey::CreateFromKey(EVP_PKEY* key) { … }
ErrorOr<RSAPrivateKey> RSAPrivateKey::Copy() const { … }
ErrorOr<std::vector<uint8_t>> RSAPrivateKey::ExportPrivateKey() const { … }
ErrorOr<std::vector<uint8_t>> RSAPrivateKey::ExportPublicKey() const { … }
RSAPrivateKey::RSAPrivateKey() = default;
}