Implements decryption
More...
◆ CheckHMAC() [1/2]
bool Photon.SocketServer.Security.Decryptor.CheckHMAC |
( |
byte[] |
data | ) |
|
|
inline |
Checkes wheter data have corect HMAC or not
- Parameters
-
data | buffer with data and HMAC |
- Returns
- true if check pass, false otherwise
Not thread safe
◆ CheckHMAC() [2/2]
bool Photon.SocketServer.Security.Decryptor.CheckHMAC |
( |
byte[] |
data, |
|
|
int |
offset, |
|
|
int |
len |
|
) |
| |
|
inline |
Checkes wheter data have corect HMAC or not
- Parameters
-
data | buffer with data and HMAC |
offset | offset in a buffer |
len | length of data |
- Returns
- true if check pass, false otherwise
Not thread safe
◆ CheckHMACThreadSafe() [1/2]
bool Photon.SocketServer.Security.Decryptor.CheckHMACThreadSafe |
( |
byte[] |
data | ) |
|
|
inline |
Checkes wheter data have corect HMAC or not
- Parameters
-
data | buffer with data and HMAC |
- Returns
- true if check pass, false otherwise
thread safe
◆ CheckHMACThreadSafe() [2/2]
bool Photon.SocketServer.Security.Decryptor.CheckHMACThreadSafe |
( |
byte[] |
data, |
|
|
int |
offset, |
|
|
int |
len |
|
) |
| |
|
inline |
Checkes wheter data have corect HMAC or not
- Parameters
-
data | buffer with data and HMAC |
offset | offset in a buffer |
len | length of data |
- Returns
- true if check pass, false otherwise
thread safe
◆ DecryptBufferWithIV()
byte [] Photon.SocketServer.Security.Decryptor.DecryptBufferWithIV |
( |
byte[] |
data, |
|
|
int |
offset, |
|
|
int |
len |
|
) |
| |
|
inline |
Decrypts buffer containing IV
- Parameters
-
data | encrypted data prepened by IV |
offset | offset in the buffer |
len | len of data to decrypt |
- Returns
Thread safe