30 lines
529 B
C++
30 lines
529 B
C++
#pragma once
|
|
|
|
#include "ICmd.h"
|
|
|
|
namespace bts
|
|
{
|
|
namespace crypto
|
|
{
|
|
class PublicKey;
|
|
}
|
|
namespace config
|
|
{
|
|
class EncryptedKeyCode;
|
|
class KeyCode;
|
|
}
|
|
namespace cmd
|
|
{
|
|
|
|
bool decrypt(const bts::crypto::PublicKey& public_key, const bts::config::EncryptedKeyCode& kc, bts::config::KeyCode* dk);
|
|
class KeyCode : public ICmd
|
|
{
|
|
public:
|
|
enum class PublicPrivate {Public, Private};
|
|
int execute(std::vector<std::string> const &args);
|
|
std::string help();
|
|
|
|
static std::string helpstr();
|
|
};
|
|
|
|
}} |