P256_Lua.h (674B)
1 /* 2 * P256_Lua.h - Lua bindings for NIST P-256 (secp256r1) 3 */ 4 5 #ifndef P256_LUA_H 6 #define P256_LUA_H 7 8 #include <lua.h> 9 #include <lauxlib.h> 10 11 /* ECDH functions */ 12 int l_p256_ecdh_keypair(lua_State *L); /* Generate ECDH keypair */ 13 int l_p256_ecdh_public_key(lua_State *L); /* Derive public key from private */ 14 int l_p256_ecdh_shared_secret(lua_State *L); /* Compute shared secret */ 15 16 /* ECDSA functions */ 17 int l_p256_ecdsa_keypair(lua_State *L); /* Generate ECDSA keypair */ 18 int l_p256_ecdsa_sign(lua_State *L); /* Sign message hash */ 19 int l_p256_ecdsa_verify(lua_State *L); /* Verify signature */ 20 21 #endif /* P256_LUA_H */