Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp81559ybi; Fri, 24 May 2019 00:05:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUBoWabsY9ZRxTuJeLDX/VOh8OVy5ZL2KJKqm+5Rt/keFNYQgVo5rQzLV/4VddVNuk4QQ+ X-Received: by 2002:a63:4754:: with SMTP id w20mr15372926pgk.31.1558681516341; Fri, 24 May 2019 00:05:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558681516; cv=none; d=google.com; s=arc-20160816; b=PC0bjBC5ueswCKSArBtBQOVanwe/R8ZZqAuJrb32RglU5T83qf5FaVDIbjUAihzK9x j9S2jONqwLktEsvuzmXQq0+UrjcKOGVeZEBr69+FZf6Acr78zqqmdhk4BFBykHN8imW9 EjXVMeXygVHff+D2rlrwjh/khQDFufvxfLrKZujyFquiWLifMdwoqyR7bt7KH8FAnjnM PiaSaFGsgxn7ezZjx9Jedcjx8ronErbGXsKPSE1UsmpS4JBW286D1oi8V8oLYE6u3bi4 8VkQ0+IrPQH6xJdfTEaN/4Kz19tbGLuk8eq2yj83/MuKtb/uU1WbcYpcNfXvMnDBoZOf 9upA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=srtcpvW0EUb8Wk8jlJTeu8b1uqm9JXsDimO5od25VVU=; b=VxUqsuYWpk4g3yHCHq6qdWBOwlPxn6m3rvh2i33ztAMNMVIkckLHHRNT01CqZ1D06E U6dMOx1L6DS1OL+rjNeSTsDihAWPdVa8RhSDB7+QtrEdBuI1I/Z5wuAWxS5vhbCNFqiI EjeghiZN0XdlLimb+GgNJ4OTYj0rnhIGFZrKM7H7JDMpT+9G3pTgXAOfqvLeDWafSVRt zzkvl8b4MCBmK5UwRBHMam+5YQk1Fpg+EwTI7cIlMGG5NFLGR2pNQYvw0xTVBhDTJ7d+ VfNKWFtc3PsetW8jbaNxs9eknB1qZNCRVZuGV5rWPk0LQntd0SRDeDn1hwAUdI7vxzbp EuzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=nVgZDtAg; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a101si2549782pje.14.2019.05.24.00.04.52; Fri, 24 May 2019 00:05:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=nVgZDtAg; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388957AbfEXHEF (ORCPT + 99 others); Fri, 24 May 2019 03:04:05 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:37569 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388872AbfEXHEF (ORCPT ); Fri, 24 May 2019 03:04:05 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190524070403euoutp01cebf8a0f165b2f8331c1f8e729d135a5~hjIO0PZIc0556105561euoutp01o for ; Fri, 24 May 2019 07:04:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190524070403euoutp01cebf8a0f165b2f8331c1f8e729d135a5~hjIO0PZIc0556105561euoutp01o DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1558681443; bh=srtcpvW0EUb8Wk8jlJTeu8b1uqm9JXsDimO5od25VVU=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=nVgZDtAgKsdC3QnuO75UAezUk95L1aJ6IdnIQy5I42glvKPVl28qqnyKvsHqdokNa kmwFuLGpSAq0wbF4p4BSR5g9r+sH20e+AcyWR/Tcg1IBeHF3fQcQLBN3swuBkTjpnx 1jLLS4myZaQgmku86FsxpC0wCjbNgtL961o2/xJs= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190524070403eucas1p19b1048d59849af288dfd91feb9f251f6~hjIOgMmzt1540615406eucas1p17; Fri, 24 May 2019 07:04:03 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id AF.03.04325.26797EC5; Fri, 24 May 2019 08:04:02 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190524070402eucas1p2612b7719b36f305e6769db2f898bdc0c~hjINwiQji2321423214eucas1p2R; Fri, 24 May 2019 07:04:02 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190524070401eusmtrp2bef37a166f5f6fa9b1fbb735f602fd01~hjINigojR1709717097eusmtrp2r; Fri, 24 May 2019 07:04:01 +0000 (GMT) X-AuditID: cbfec7f5-b8fff700000010e5-35-5ce797623e28 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 90.0F.04146.16797EC5; Fri, 24 May 2019 08:04:01 +0100 (BST) Received: from [106.120.51.18] (unknown [106.120.51.18]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190524070401eusmtip213b9ae7a279f7a84b023694ce8199b95~hjINSCNPF2226722267eusmtip25; Fri, 24 May 2019 07:04:01 +0000 (GMT) Subject: Re: another testmgr question To: Ard Biesheuvel , Pascal Van Leeuwen Cc: Eric Biggers , "linux-crypto@vger.kernel.org" From: Kamil Konieczny Message-ID: Date: Fri, 24 May 2019 09:04:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMKsWRmVeSWpSXmKPExsWy7djP87pJ05/HGPydr2Px/8NuRou1e/4w W9y/95PJomv3MRYHFo/ONztZPTat6mTzuHNtD5vH501yASxRXDYpqTmZZalF+nYJXBkvlsQU bGOt6Nl9ga2BcTVLFyMnh4SAicT95eeYuhi5OIQEVjBKzPvUwQ7hfGGUuDd1FTOE85lR4snz FWwwLTuvPmKFSCxnlLjVuhzKecsosfXudyaQKmEBVYmD0zaDLRERSJZ4dOAWUDcHB7NAukT/ nkiQMJuAucSj7WfAynkF3CS+b97ACFLCAtS65a4aSFhUIELi/rENrBAlghInZz4Bm8gpECgx 8X4PM4jNLCAucevJfCYIW15i+9s5zBB3drNLrJphCWG7SMzc/I8JwhaWeHV8CzuELSPxf+d8 qHi5xNOFfWDfSwi0MEo8aP8IDSNricPHL7JCnK8psX6XPkTYUeL40k1gJ0sI8EnceCsIcQKf xKRt05khwrwSHW1CENW6EvP+n2GFsKUluv6vY53AqDQLyWOzkDwzC8kzsxD2LmBkWcUonlpa nJueWmycl1quV5yYW1yal66XnJ+7iRGYVE7/O/51B+O+P0mHGAU4GJV4eLvqn8UIsSaWFVfm HmKU4GBWEuGN3Q8U4k1JrKxKLcqPLyrNSS0+xCjNwaIkzlvN8CBaSCA9sSQ1OzW1ILUIJsvE wSnVwDglUfBNU+/WLFsO+ZZpi/oVN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ID: 20190524070402eucas1p2612b7719b36f305e6769db2f898bdc0c X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190524052451epcas1p29029f5e2916daf9ade9c0c545886b432 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190524052451epcas1p29029f5e2916daf9ade9c0c545886b432 References: <20190523185833.GA243994@google.com> <20190523200557.GA248378@gmail.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 24.05.2019 07:24, Ard Biesheuvel wrote: > On Thu, 23 May 2019 at 22:44, Pascal Van Leeuwen > wrote: >> > [...] > In fact, given the above, I am slightly shocked that your hardware > does not handle empty messages correctly. [...] Imho hardware handles it in the way it was designed, for Exynos writing non-zero value to len message register starts hash/hmac. Writing zero and waiting for result will cause hang, as there will be no result ever. It can be done in HW to handle zero with additional register and more wires, but it was left to software driver as trivial case. -- Best regards, Kamil Konieczny Samsung R&D Institute Poland