[tarantool-patches] Re: [PATCH v3 4/4] crypto: use crypto library in crypto.lua

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Wed May 15 16:42:45 MSK 2019



On 15/05/2019 11:01, Георгий Кириченко wrote:
> Looks good except this: (two points near cipher..c)

It is not a typo - it is a concatenation operator in Lua.

>> +c:init(nil, iv)
>> +cipher = c:update('plain ')
>> +cipher = cipher..c:update('next plain')
>> +cipher = cipher..c:result()
>> +crypto.cipher.aes128.cbc.decrypt(cipher, key, iv)
>> +-- Reuse.




More information about the Tarantool-patches mailing list