![]() |
TrinityCore
|
#include <Ed25519.h>
Public Member Functions | |
| Ed25519 () | |
| Ed25519 (Ed25519 const &right) | |
| Ed25519 (Ed25519 &&right) noexcept | |
| ~Ed25519 () | |
| Ed25519 & | operator= (Ed25519 const &right) |
| Ed25519 & | operator= (Ed25519 &&right) noexcept |
| bool | LoadFromFile (std::string const &fileName) |
| bool | LoadFromString (std::string const &keyPem) |
| bool | LoadFromByteArray (std::array< uint8, 32 > const &keyBytes) |
| template<std::size_t N> | |
| bool | Sign (std::array< uint8, N > const &message, std::vector< uint8 > &output) |
| bool | Sign (uint8 const *message, std::size_t messageLength, std::vector< uint8 > &output) |
| template<std::size_t N> | |
| bool | SignWithContext (std::array< uint8, N > const &message, std::vector< uint8 > const &context, std::vector< uint8 > &output) |
| bool | SignWithContext (uint8 const *message, std::size_t messageLength, std::vector< uint8 > const &context, std::vector< uint8 > &output) |
Private Attributes | |
| EVP_PKEY * | _key = nullptr |
|
default |
| Trinity::Crypto::Ed25519::Ed25519 | ( | Ed25519 const & | right | ) |
Definition at line 29 of file Ed25519.cpp.
|
noexcept |
Definition at line 34 of file Ed25519.cpp.
| Trinity::Crypto::Ed25519::~Ed25519 | ( | ) |
Definition at line 39 of file Ed25519.cpp.
References _key.
| bool Trinity::Crypto::Ed25519::LoadFromByteArray | ( | std::array< uint8, 32 > const & | keyBytes | ) |
Definition at line 103 of file Ed25519.cpp.
References _key.
| bool Trinity::Crypto::Ed25519::LoadFromFile | ( | std::string const & | fileName | ) |
Definition at line 63 of file Ed25519.cpp.
References _key.
| bool Trinity::Crypto::Ed25519::LoadFromString | ( | std::string const & | keyPem | ) |
Definition at line 82 of file Ed25519.cpp.
References _key.
Definition at line 54 of file Ed25519.cpp.
Definition at line 44 of file Ed25519.cpp.
References _key.
| bool Trinity::Crypto::Ed25519::Sign | ( | uint8 const * | message, |
| std::size_t | messageLength, | ||
| std::vector< uint8 > & | output | ||
| ) |
Definition at line 118 of file Ed25519.cpp.
References _key.
| bool Trinity::Crypto::Ed25519::SignWithContext | ( | uint8 const * | message, |
| std::size_t | messageLength, | ||
| std::vector< uint8 > const & | context, | ||
| std::vector< uint8 > & | output | ||
| ) |
Definition at line 135 of file Ed25519.cpp.
References _key.
|
private |
Definition at line 65 of file Ed25519.h.
Referenced by LoadFromByteArray(), LoadFromFile(), LoadFromString(), operator=(), Sign(), SignWithContext(), and ~Ed25519().