chromium/third_party/openscreen/src/util/crypto/rsa_private_key.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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;

// static
ErrorOr<RSAPrivateKey> RSAPrivateKey::Create(uint16_t num_bits) {}

// static
ErrorOr<RSAPrivateKey> RSAPrivateKey::CreateFromPrivateKeyInfo(
    const std::vector<uint8_t>& input) {}

// static
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;

}  // namespace openscreen