|
Copy and paste code, interactively line by line to verify the length via #e which doesn't show the problem you mentioned.
Sent: Mon, June 7, 2010 3:07:21 PM
Subject: Re: lxyssl (AES binding), CFB enHi,just to be clear: are you saying that one of the 2 code snippets I've posted is working on your machine?Or, you're saying that you have some other variant of this same functionality that is working fine for you? If so, I'd be very curious to see it.
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")d=aes_cfb:decrypt(e)assert(d==data.."a")function ex2()key='abcdabcdabcdabcd'data="">iv=lxyssl.hash('md5'):digest(key)e=lxyssl.aes(key):cfb_encrypt(data .. "a",iv)d=lxyssl.aes(key):cfb_decrypt(e,iv)assert(d==data .."a")end
- Follow-Ups:
- Re: lxyssl (AES binding), CFB en, gary ng
- References:
- lxyssl (AES binding), CFB en, Valerio Schiavoni
- Re: lxyssl (AES binding), CFB en, gary ng
- Re: lxyssl (AES binding), CFB en, Valerio Schiavoni
- Re: lxyssl (AES binding), CFB en, gary ng
- Re: lxyssl (AES binding), CFB en, Valerio Schiavoni
- Re: lxyssl (AES binding), CFB en, gary ng
- Prev by Date: Re: lxyssl (AES binding), CFB en
- Next by Date: Re: lxyssl (AES binding), CFB en
- Previous by thread: Re: lxyssl (AES binding), CFB en
- Next by thread: Re: lxyssl (AES binding), CFB en
- Index(es):