mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-24 08:18:44 +08:00
13 lines
440 B
C++
13 lines
440 B
C++
# pragma once
|
|
# include <hpcstat/common.hpp>
|
|
|
|
namespace hpcstat::ssh
|
|
{
|
|
// get a valid public key fingerprint
|
|
std::optional<std::string> fingerprint();
|
|
// sign a message with the key of specified fingerprint
|
|
std::optional<std::string> sign(std::string message, std::string fingerprint);
|
|
// verify a message with the key of specified fingerprint
|
|
bool verify(std::string message, std::string signature, std::string fingerprint);
|
|
}
|