wavelength 1.0.0
Loading...
Searching...
No Matches
netcrypt.h
Go to the documentation of this file.
1#pragma once
2
8
10constexpr int kNetCryptKeySize = 16;
11
13constexpr int kNetCryptKeyWords = 4;
14
22
32void NetCryptMakeKey(unsigned char pKey[kNetCryptKeySize]);
33
43void NetCryptSetKey(const unsigned char pKey[kNetCryptKeySize]);
44
53void NetCryptEncrypt(void *pData, int nSize);
54
63void NetCryptDecrypt(void *pData, int nSize);
void NetCryptDecrypt(void *pData, int nSize)
Decrypt the whole eight-byte blocks of a buffer in place, from the stored initial vector.
void NetCryptInit()
Register Blowfish and start the shared CBC state with the default key and initial vector.
void NetCryptSetKey(const unsigned char pKey[kNetCryptKeySize])
Replace the stored key and initial vector.
constexpr int kNetCryptKeyWords
The words NetCryptMakeKey() draws.
Definition netcrypt.h:13
void NetCryptMakeKey(unsigned char pKey[kNetCryptKeySize])
Draw a random key and initial vector for NetCryptSetKey().
void NetCryptEncrypt(void *pData, int nSize)
Encrypt the whole eight-byte blocks of a buffer in place, from the stored initial vector.
constexpr int kNetCryptKeySize
Blowfish in CBC mode over the packets of an online session.
Definition netcrypt.h:10