![]() |
TrinityCore
|
#include <RSA.h>
Classes | |
| class | DigestGenerator |
| class | HMAC_SHA256 |
| class | SHA256 |
Public Member Functions | |
| RsaSignature () | |
| RsaSignature (RsaSignature const &other) | |
| RsaSignature (RsaSignature &&other) noexcept | |
| ~RsaSignature () | |
| RsaSignature & | operator= (RsaSignature const &right) |
| RsaSignature & | operator= (RsaSignature &&right) noexcept |
| bool | LoadKeyFromFile (std::string const &fileName) |
| bool | LoadKeyFromString (std::string const &keyPem) |
| template<std::size_t N> | |
| bool | Sign (std::array< uint8, N > const &message, DigestGenerator &generator, std::vector< uint8 > &output) |
| bool | Sign (uint8 const *message, std::size_t messageLength, DigestGenerator &generator, std::vector< uint8 > &output) |
Private Attributes | |
| EVP_MD_CTX * | _ctx = nullptr |
| EVP_PKEY * | _key = nullptr |
| Trinity::Crypto::RsaSignature::RsaSignature | ( | RsaSignature const & | other | ) |
|
noexcept |
| Trinity::Crypto::RsaSignature::~RsaSignature | ( | ) |
| bool Trinity::Crypto::RsaSignature::LoadKeyFromFile | ( | std::string const & | fileName | ) |
| bool Trinity::Crypto::RsaSignature::LoadKeyFromString | ( | std::string const & | keyPem | ) |
|
noexcept |
Definition at line 282 of file RSA.cpp.
References Trinity::Impl::GenericHashImpl::MakeCTX().
| RsaSignature & Trinity::Crypto::RsaSignature::operator= | ( | RsaSignature const & | right | ) |
|
inline |
| bool Trinity::Crypto::RsaSignature::Sign | ( | uint8 const * | message, |
| std::size_t | messageLength, | ||
| DigestGenerator & | generator, | ||
| std::vector< uint8 > & | output | ||
| ) |
Definition at line 332 of file RSA.cpp.
References _ctx, _key, Trinity::Crypto::RsaSignature::DigestGenerator::GetGenerator(), Trinity::Crypto::RsaSignature::DigestGenerator::GetLib(), Trinity::Crypto::RsaSignature::DigestGenerator::GetParams(), and params.
|
private |
Definition at line 95 of file RSA.h.
Referenced by operator=(), Sign(), and ~RsaSignature().
|
private |
Definition at line 96 of file RSA.h.
Referenced by Trinity::Crypto::RsaSignature::HMAC_SHA256::GetParams(), LoadKeyFromFile(), LoadKeyFromString(), operator=(), Sign(), and ~RsaSignature().