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)
8193

 

 



From: Valerio Schiavoni <valerio.schiavoni@gmail.com>
To: Lua list <lua@bazar2.conectiva.com.br>
Sent: Mon, June 7, 2010 3:24:25 PM
Subject: Re: lxyssl (AES binding), CFB en

Well:

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

> print(#e)
0

I don't understand..