![]() |
libfilezilla
|
Signature scheme using Ed25519. More...
Go to the source code of this file.
Classes | |
class | public_verification_key |
Represents a public key to verify messages signed using Ed25519. More... | |
class | private_signing_key |
Represents a private key to sign message with using Ed25519. More... | |
Namespaces | |
fz | |
The namespace used by libfilezilla. | |
Enumerations | |
enum | { signature_size = 64 } |
Functions | |
std::vector< uint8_t > | sign (std::vector< uint8_t > const &message, private_signing_key const &priv) |
Returns the message with the signature appended, created using the passed private key. | |
std::vector< uint8_t > | sign (std::string const &message, private_signing_key const &priv) |
std::vector< uint8_t > | sign (uint8_t const &message, size_t const size, private_signing_key const &priv) |
bool | verify (std::vector< uint8_t > const &message, public_verification_key const &pub) |
Verify the message. Returns true iff it has been signed by the private key corresponding to the passed public key. | |
bool | verify (std::string const &message, public_verification_key const &pub) |
bool | verify (uint8_t const *message, size_t const size, public_verification_key const &pub) |
Signature scheme using Ed25519.
See RFC 8032 for the X22519 specs.