[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: private/public key support ?
- From: Valerio Schiavoni <valerio.schiavoni@...>
- Date: Tue, 16 Mar 2010 00:33:09 +0100
Hello Luiz,
trying to build lmd5, i get this:
gcc -I/Users/veleno/Downloads/lua-5.1.4/src -DUSE_SHA1_OPENSSL -O2
-c -o lmd5.o lmd5.c
gcc -o md5.so -shared lmd5.o -lcrypto
Undefined symbols:
"_lua_pushvalue", referenced from:
_luaopen_sha1 in lmd5.o
_luaopen_sha1 in lmd5.o
"_luaL_checkudata", referenced from:
_Pget in lmd5.o
"_luaL_openlib", referenced from:
_luaopen_sha1 in lmd5.o
"_lua_pushlstring", referenced from:
_luaopen_sha1 in lmd5.o
_luaopen_sha1 in lmd5.o
_luaopen_sha1 in lmd5.o
_luaopen_sha1 in lmd5.o
_luaopen_sha1 in lmd5.o
_Ldigest in lmd5.o
_Ldigest in lmd5.o
"_lua_getfield", referenced from:
_Pnew in lmd5.o
"_luaL_checklstring", referenced from:
_Lupdate in lmd5.o
_Ldigest in lmd5.o
"_lua_toboolean", referenced from:
_Ldigest in lmd5.o
"_lua_pushfstring", referenced from:
_Ltostring in lmd5.o
"_lua_settable", referenced from:
_luaopen_sha1 in lmd5.o
_luaopen_sha1 in lmd5.o
_luaopen_sha1 in lmd5.o
"_lua_setmetatable", referenced from:
_Pnew in lmd5.o
"_lua_newuserdata", referenced from:
_Pnew in lmd5.o
"_lua_isuserdata", referenced from:
_Ldigest in lmd5.o
"_lua_setfield", referenced from:
_luaopen_sha1 in lmd5.o
"_lua_gettable", referenced from:
_luaopen_sha1 in lmd5.o
"_luaL_newmetatable", referenced from:
_luaopen_sha1 in lmd5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [md5.so] Error 1
Any idea ?
On Mon, Mar 15, 2010 at 1:56 PM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> I've found what I was looking for:
>>
>> http://luaforge.net/frs/?group_id=394&release_id=1120
>>
>> it's "very" slow because it's in pure Lua, but it's exactly what I was
>> searching.
>> Maybe some C-backed implementation would be better..
>
> You can combine my lmd5 (which also supports SHA1) with my lbc, which does
> arbitrary precision arithmetic, including modular exponentiation. See
> http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lmd5
> http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lbc
>