#include "remoting/base/rsa_key_pair.h"
#include <stdint.h>
#include <limits>
#include <string>
#include <utility>
#include <vector>
#include "base/base64.h"
#include "base/logging.h"
#include "base/rand_util.h"
#include "base/time/time.h"
#include "crypto/rsa_private_key.h"
#include "crypto/signature_creator.h"
#include "net/cert/x509_util.h"
namespace remoting {
RsaKeyPair::RsaKeyPair(std::unique_ptr<crypto::RSAPrivateKey> key)
: … { … }
RsaKeyPair::~RsaKeyPair() = default;
scoped_refptr<RsaKeyPair> RsaKeyPair::Generate() { … }
scoped_refptr<RsaKeyPair> RsaKeyPair::FromString(
const std::string& key_base64) { … }
std::string RsaKeyPair::ToString() const { … }
std::string RsaKeyPair::GetPublicKey() const { … }
std::string RsaKeyPair::SignMessage(const std::string& message) const { … }
std::string RsaKeyPair::GenerateCertificate() const { … }
}