|
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
- Prev by Date: Re: LUA in STBs - Analyst looking for updates
- 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):