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. | |
Encapsulates message signing and opening of signed messages.
|
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.
|
static |
Signs the given message with the given signingKey, storing the signed message in signedMessage.
Returns true on success, false on failure.