21#ifndef __LUACRYPTOAPI_H__
22#define __LUACRYPTOAPI_H__
74 static int EncryptData( lua_State *pLuaState );
75 static int DecryptData( lua_State *pLuaState );
79 static void Register( lua_State *pLuaState );
116 static bool TryDecryptBytes(
const std :: vector<unsigned char> &data, std :: vector<unsigned char> &out );
Content encryption - protects a game's own .zip bundle content so only that game's own privately-buil...
Definition luacryptoapi.h:72
static bool TryDecryptBytes(const std ::vector< unsigned char > &data, std ::vector< unsigned char > &out)
Attempt to decrypt a buffer that may have been produced by crypto_encrypt_data/tools/pack....
Definition luacryptoapi.cpp:227
static void Register(lua_State *pLuaState)
Register the content-encryption Lua-callable functions. sodium_init() is called once here rather than...
Definition luacryptoapi.cpp:245
Definition irendererprovider.h:32