Valerio Schiavoni | 16 Apr 19:27 2010

Re: fast AES implementation ?

Hello Michal,

thanks for the effort.

Trying to compile it on mac osx:

export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc -shared -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -I/usr/include/openssl -I/Users/veleno/workspace/lua-5.1.4/  -llua5.1 -bundle -undefined dynamic_lookup  -o src/ src/lcrypto.o  -lcrypto -lssl
i686-apple-darwin10-gcc-4.2.1: -bundle not allowed with -dynamiclib
make: *** [src/] Error 1

best regards,

On Fri, Apr 16, 2010 at 12:27 AM, Michal Kottman <k0mpjut0r <at>> wrote:
On Po, 2010-04-12 at 01:19 +0200, Valerio Schiavoni wrote:
> On Mon, Apr 12, 2010 at 1:14 AM, dcharno <dcharno <at>> wrote:
>         Valerio Schiavoni wrote:
>                 i'm looking for a fast AES implementation which
>                 provides Lua bindings.

>         I've used Luacrypto which provides a front-end for OpenSSL.
> I know it does, but not for AES:


I took the risk of duplicating someone's work and implemented the
encryption and decryption in LuaCrypto. The work-in-progress code can be
found at

Please consider it beta quality, I've done a lot of copypasting within
the code, although the included test shows that it is capable of
encrypting "Hello world!" using AES and then decrypting it successfully.

I have partly updated the docs/reference, it is available at

I hope this will be useful to someone.