luajitos

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

RSA_Lua.h (735B)


      1 /*
      2  * RSA_Lua.h - Lua bindings for RSA public key cryptography
      3  */
      4 
      5 #ifndef RSA_LUA_H
      6 #define RSA_LUA_H
      7 
      8 #include <lua.h>
      9 #include <lauxlib.h>
     10 
     11 /* Lua function bindings */
     12 int l_rsa_generate_keypair(lua_State *L);  /* Generate RSA keypair */
     13 int l_rsa_encrypt(lua_State *L);            /* RSA public key encryption */
     14 int l_rsa_decrypt(lua_State *L);            /* RSA private key decryption */
     15 int l_rsa_sign(lua_State *L);               /* RSA sign message (PKCS#1 v1.5) */
     16 int l_rsa_verify(lua_State *L);             /* RSA verify signature (PKCS#1 v1.5) */
     17 int l_rsa_sign_pss(lua_State *L);           /* RSA sign message (PSS) */
     18 int l_rsa_verify_pss(lua_State *L);         /* RSA verify signature (PSS) */
     19 
     20 #endif /* RSA_LUA_H */