PBKDF2_Lua.h (799B)
1 /* 2 * PBKDF2_Lua.h - Lua bindings for PBKDF2 key derivation 3 */ 4 5 #ifndef PBKDF2_LUA_H 6 #define PBKDF2_LUA_H 7 8 #include <lua.h> 9 #include <lauxlib.h> 10 #include <stdint.h> 11 #include <stddef.h> 12 13 /* Base64 encoding function (provided by crypto.c) */ 14 char* base64_encode(const uint8_t *data, size_t len, size_t *out_len); 15 16 /* Individual function bindings */ 17 int l_deriveKey(lua_State *L); /* PBKDF2 with salt */ 18 int l_deriveKeyString(lua_State *L); /* PBKDF2 with salt (base64) */ 19 int l_generateSalt(lua_State *L); /* Generate random salt */ 20 int l_deriveKeySimple(lua_State *L); /* Argon2id simple (password only) */ 21 int l_argon2id_derive(lua_State *L); /* Argon2id with custom parameters */ 22 int l_hkdf_derive(lua_State *L); /* HKDF key derivation */ 23 24 #endif /* PBKDF2_LUA_H */