SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PacketCodec.h
Go to the documentation of this file.
1 /*
2  * SEGS - Super Entity Game Server
3  * http://www.segs.io/
4  * Copyright (c) 2006 - 2018 SEGS Team (see Authors.txt)
5  * This software is licensed! (See License.txt for details)
6  */
7 
8 /************************************************************************
9 Class: Net
10 Author: Darawk
11 Description: The Net class abstracts normal network operations away from
12 the user.
13 ************************************************************************/
14 #pragma once
15 #include <deque>
16 #include <cstddef>
17 #include <stdint.h>
18 #ifdef USE_REAL_CODING
19 #include <crypto++/cryptlib.h>
20 #include <crypto++/modes.h>
21 #include <crypto++/des.h>
22 #include <crypto++/md5.h>
23 #include <crypto++/rng.h>
24 #include <crypto++/osrng.h>
25 #include <crypto++/dh.h>
26 extern "C"
27 {
28 #include "blowfish.h"
29 }
30 using namespace CryptoPP;
31 #endif
32 
34 {
35 public:
36  static uint32_t Checksum(const uint8_t *buf,size_t size);
37  void Decrypt(uint8_t * /*arr*/,size_t /*size*/){}
38  void Encrypt(uint8_t * /*arr*/,size_t /*size*/){}
39  void StartEncryption(uint8_t * /*other_public_key*/){}
40 
41 };
void StartEncryption(uint8_t *)
Definition: PacketCodec.h:39
void Decrypt(uint8_t *, size_t)
Definition: PacketCodec.h:37
void Encrypt(uint8_t *, size_t)
Definition: PacketCodec.h:38
Definition: PacketCodec.h:33