CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
27 namespace catapult {
namespace crypto {
class KeyPair; } }
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
def debug(*args)
Definition: Parser.py:46
A packet header with a data payload.
Definition: Packet.h:32
ionet::ConnectionSecurityMode SecurityMode
Security mode requested by the client.
Definition: Challenge.h:58
bool VerifyClientChallengeResponse(const ClientChallengeResponse &response, const Key &serverPublicKey, const Challenge &challenge)
Definition: Challenge.cpp:86
static constexpr ionet::PacketType Packet_Type
Definition: Challenge.h:46
std::shared_ptr< ServerChallengeResponse > GenerateServerChallengeResponse(const ServerChallengeRequest &request, const crypto::KeyPair &keyPair, ionet::ConnectionSecurityMode securityMode)
Definition: Challenge.cpp:61
ConnectionSecurityMode
Possible connection security modes.
Definition: ConnectionSecurityMode.h:36
catapult::Signature Signature
Client's signature on the server challenge and any additional request information.
Definition: Challenge.h:52
std::shared_ptr< ClientChallengeResponse > GenerateClientChallengeResponse(const ServerChallengeResponse &request, const crypto::KeyPair &keyPair)
Generates a server response to a client challenge (request) using the server key pair (keyPair).
Definition: Challenge.cpp:78
PacketType
An enumeration of known packet types.
Definition: PacketType.h:171
Packet representing a challenge response from a server to a client.
Definition: Challenge.h:62
Represents a pair of private key with associated public key.
Definition: KeyPair.h:33
std::array< uint8_t, 64 > Challenge
Challenge data.
Definition: Challenge.h:32
static constexpr ionet::PacketType Packet_Type
Definition: Challenge.h:63
static constexpr ionet::PacketType Packet_Type
Definition: Challenge.h:38
net::Challenge Challenge
Challenge data that should be signed by the server.
Definition: Challenge.h:49
Packet representing a challenge response and new challenge request from a client to a server.
Definition: Challenge.h:45
const auto & publicKey() const
Returns a public key of a key pair.
Definition: KeyPair.h:56
bool VerifyServerChallengeResponse(const ServerChallengeResponse &response, const Challenge &challenge)
Verifies a client's response to challenge.
Definition: Challenge.cpp:74
net::Challenge Challenge
Challenge data that should be signed by the client.
Definition: Challenge.h:41
catapult::Signature Signature
Server's signature on the client challenge.
Definition: Challenge.h:66
Packet representing a challenge request from a server to a client.
Definition: Challenge.h:37
Definition: AddressExtractionExtension.cpp:28
bool Verify(const Key &publicKey, const RawBuffer &dataBuffer, const Signature &signature)
Definition: Signer.cpp:136
Key PublicKey
Client's public key.
Definition: Challenge.h:55
void Sign(const KeyPair &keyPair, const RawBuffer &dataBuffer, Signature &computedSignature)
Definition: Signer.cpp:82
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41
std::shared_ptr< ServerChallengeRequest > GenerateServerChallengeRequest()
Generates a random server challenge request that is sent to a client.
Definition: Challenge.cpp:55
BasicRawBuffer< const uint8_t > RawBuffer
A const binary buffer.
Definition: RawBuffer.h:62