From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 01AE12EC44 for ; Wed, 15 May 2019 09:42:50 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i7Ql6tldyEln for ; Wed, 15 May 2019 09:42:49 -0400 (EDT) Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id B3BD82EAA7 for ; Wed, 15 May 2019 09:42:49 -0400 (EDT) Subject: [tarantool-patches] Re: [PATCH v3 4/4] crypto: use crypto library in crypto.lua References: <470c7d23d93014f4c03bb7f1085a33cc8e249097.1557262174.git.v.shpilevoy@tarantool.org> <1679360.outRNIRxmt@home.lan> From: Vladislav Shpilevoy Message-ID: Date: Wed, 15 May 2019 16:42:45 +0300 MIME-Version: 1.0 In-Reply-To: <1679360.outRNIRxmt@home.lan> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org, =?UTF-8?B?0JPQtdC+0YDQs9C40Lkg0JrQuNGA?= =?UTF-8?B?0LjRh9C10L3QutC+?= 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.