nixos/packages/hpcstat/include/hpcstat/ssh.hpp
2024-08-01 00:25:23 +08:00

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);
}