lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Which is why I said, I have no idea. The following were done under linux using lua 5.1.3 and the library has been in used for quite a while. I don't have 5.1.4 on this machine(it is a debian lenny) and don't have the time to redo it(compile lua then lxyssl etc.) from scratch.
> require'security'
> data="">> k=security.hash.engine('md5'):digest('abcd')
> aes_cfb = security.crypto.engine('aes_cfb',k,k)
> e=aes_cfb:encrypt(data..'a')
> print(#e)



From: Valerio Schiavoni <>
To: Lua list <>
Sent: Mon, June 7, 2010 3:24:25 PM
Subject: Re: lxyssl (AES binding), CFB en


Lua 5.1.4  Copyright (C) 1994-2008, PUC-Rio
> require"security"
> data="">
> k = security.hash.engine('md5'):digest('abcd')
> print(k)
> aes_cfb = security.crypto.engine('aes_cfb', k, k)
> e=aes_cfb:encrypt(data.."a")
> print(e)

> print(#e)

I don't understand..