libDwmCredence-0.1.32
Dwm::Credence::Signer Class Reference

Encapsulates message signing and opening of signed messages. More...

#include <DwmCredenceSigner.hh>

Static Public Member Functions

static bool Sign (const std::string &message, const std::string &signingKey, std::string &signedMessage)
 Signs the given message with the given signingKey, storing the signed message in signedMessage.
 
static bool Open (const std::string &signedMessage, const std::string &publicKey, std::string &message)
 Opens the given signedMessage that must have been signed by the owner of the given publicKey, storing the contents of the signed message in message.
 

Detailed Description

Encapsulates message signing and opening of signed messages.

Member Function Documentation

◆ Open()

static bool Dwm::Credence::Signer::Open ( const std::string & signedMessage,
const std::string & publicKey,
std::string & message )
static

Opens the given signedMessage that must have been signed by the owner of the given publicKey, storing the contents of the signed message in message.

Returns true on success, false on failure.

◆ Sign()

static bool Dwm::Credence::Signer::Sign ( const std::string & message,
const std::string & signingKey,
std::string & signedMessage )
static

Signs the given message with the given signingKey, storing the signed message in signedMessage.

Returns true on success, false on failure.


The documentation for this class was generated from the following file: