Server verification, as performed during the connection handshake.
More...
#include <eolib/encrypt/server_verifier.hpp>
|
| static int | Hash (int challenge) noexcept |
| | Hashes a challenge value sent by the client, producing the response expected from a genuine server.
|
Server verification, as performed during the connection handshake.
◆ ServerVerifier()
| eolib::encrypt::ServerVerifier::ServerVerifier |
( |
| ) |
|
|
delete |
◆ Hash()
| int eolib::encrypt::ServerVerifier::Hash |
( |
int | challenge | ) |
|
|
staticnoexcept |
Hashes a challenge value sent by the client, producing the response expected from a genuine server.
The client sends the challenge in the InitInitClientPacket, and the server responds with the hash in the InitInitServerPacket.
- Parameters
-
| challenge | the challenge value; should be no larger than 11,092,110, since larger values may produce negative hashes that can't be represented in the EO protocol. |
- Returns
- the hashed challenge value.