luajitos

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

CSPRNG_Lua.h (572B)


      1 /*
      2  * CSPRNG_Lua.h - Lua bindings for Cryptographically Secure PRNG
      3  */
      4 
      5 #ifndef CSPRNG_LUA_H
      6 #define CSPRNG_LUA_H
      7 
      8 #include <lua.h>
      9 #include <lauxlib.h>
     10 
     11 /* Global CSPRNG functions */
     12 int l_csprng_new_key(lua_State *L);           /* Generate random key (default 256-bit) */
     13 int l_csprng_random_bytes(lua_State *L);      /* Generate random bytes */
     14 int l_csprng_new_instance(lua_State *L);      /* Create new CSPRNG instance with seed */
     15 
     16 /* Registration */
     17 void register_csprng_metatable(lua_State *L); /* Register CSPRNG instance metatable */
     18 
     19 #endif /* CSPRNG_LUA_H */