DiceKeys Seeded Cryptography Library
|
8 #include "sodium-buffer.hpp"
43 const std::vector<unsigned char> &keyBytes,
54 const std::string& signatureVerificationKeyAsJson
68 const char indent_char =
' '
82 const unsigned char* message,
83 const size_t messageLength,
84 const unsigned char* signature
108 const size_t signatureVerificationKeyBytesLength,
109 const unsigned char* message,
110 const size_t messageLength,
111 const unsigned char* signature,
112 const size_t signatureLength
133 const unsigned char* message,
134 const size_t messageLength,
135 const std::vector<unsigned char>& signature
152 const unsigned char* message,
153 const size_t messageLength,
154 const std::vector<unsigned char>& signature
170 const std::vector<unsigned char>& message,
171 const std::vector<unsigned char>& signature
188 const std::vector<unsigned char>& signature
196 const std::vector<unsigned char>
getKeyBytes()
const;
const std::vector< unsigned char > getKeyBytes() const
Get the raw signature verification key as a byte vector.
Definition: signature-verification-key.cpp:55
A byte array containing a length and a pointer to memory (the data field), which ensures data is eras...
Definition: sodium-buffer.hpp:27
const std::string getRecipeJson() const
Get the JSON-formatted recipe string used to generate the public-private key pair.
Definition: signature-verification-key.hpp:211
SignatureVerificationKey(const std::vector< unsigned char > &keyBytes, const std::string &recipe)
Construct by passing the classes members.
Definition: signature-verification-key.cpp:16
static SignatureVerificationKey fromSerializedBinaryForm(const SodiumBuffer &serializedBinaryForm)
Deserialize from a byte array stored as a list of: (signatureVerificationKeyBytes,...
Definition: signature-verification-key.cpp:136
const std::vector< unsigned char > signatureVerificationKeyBytes
The raw binary representation of the cryptographic key.
Definition: signature-verification-key.hpp:30
const std::string getKeyBytesAsHexDigits() const
Get the raw signature-verification key as a string of hex digits.
Definition: signature-verification-key.cpp:60
const std::string toOpenSshPublicKey() const
Convert the signature-verification key to an OpenSSH public key string.
Definition: signature-verification-key.cpp:145
const SodiumBuffer toSerializedBinaryForm() const
Serialize to byte array as a list of: (signatureVerificationKeyBytes, recipe)
Definition: signature-verification-key.cpp:127
const std::string toJson(int indent=-1, const char indent_char=' ') const
Serialize this object to a JSON-formatted string.
Definition: signature-verification-key.cpp:43
const std::string recipe
A JSON Format for Recipes string used to specify how this key is derived.
Definition: signature-verification-key.hpp:34
A SignatureVerificationKey is used to verify that messages were signed by its corresponding SigningKe...
Definition: signature-verification-key.hpp:25
static SignatureVerificationKey fromJson(const std::string &signatureVerificationKeyAsJson)
Construct (reconstitute) a SignatureVerificationKey from JSON format, which may ahve been generated b...
Definition: signature-verification-key.cpp:25