Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp51739pxa; Wed, 26 Aug 2020 04:40:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3dpHBtZUYAmqPwbLOihykke21D9AWfsTZpsB8DheWagwVekV+vHhI9kGHQ6KhE+c17T7u X-Received: by 2002:a17:907:728e:: with SMTP id dt14mr2619736ejc.4.1598442021835; Wed, 26 Aug 2020 04:40:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598442021; cv=none; d=google.com; s=arc-20160816; b=fKHBcjRgj/sBb3zM6TtEFxLUMgZmf9tM1oSpH35nVRgKQp7e+mobJMG5Oya4J3qOqp R7zOzloZYE5xL8JqpVnSPXg2X6D6P+C3/H6DX5wZiT/Yd1UwubpCvrNvTG0qUTpyT1CS sKqgoT/OLQH1f53SlOp1q1NYLpmc1WmOv3XH7yjUihj9ZAq+g6O3d6lb1xQNuIA/kAB7 FLUWTgbLOWuNu4PlP1lgjHILvdmBHo3rqnqdjDFOkpbgI1/wE8KJMYYpgFvVj+0gSHTg wyRNb/Wkh5JYJ4MTYOiATR6wPbaEMJrsPHRqFn+sPssGg781ZR+6Ytwaw0q/2xS+Rg0L UZ5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:reply-to:from:date; bh=El+LNQNe9Zt6ocBnwzNV3F7i0oQgaDLOclHKfP1Pti4=; b=QSCVg8SR/m89r+Xe9utpFUXBPWZg7qcTdGIORvEv7ugCb3sS2FNg7EzZhkLiHz9ZG1 C5w4aNBRw8ZnFTOh8c8jVj/b1kRWoNSA7Dr4+1xmXmPwo7dm3E6kSYhCIir/r+CSmnMv xU82GRHT089A6NDuIZHoZAdUkEzcOTnwwSHqjqKrFfaiopyM6+rvM2LJwObA/9OJ7621 UTb/gKEIbVz9YLid7kaIJxaqxCyy3fsAPgvb/pB6TwKKiQ6IiY3iy2aQKqV3fLEIa4zz bHn4vMQZq4wjXEVL6rrpYaeq5oR4G/OrwJiPlUSDl1hsY4Olui5f5NeqK6XZpguwTfiE zOHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm15si1304359edb.441.2020.08.26.04.39.45; Wed, 26 Aug 2020 04:40:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729033AbgHZLhk (ORCPT + 99 others); Wed, 26 Aug 2020 07:37:40 -0400 Received: from gw.c-home.cz ([89.24.150.100]:40970 "EHLO dmz.c-home.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728949AbgHZLeF (ORCPT ); Wed, 26 Aug 2020 07:34:05 -0400 Received: from dmz.c-home.cz (localhost [127.0.0.1]) by dmz.c-home.cz (8.14.4+Sun/8.14.4) with ESMTP id 07QBXMIi001058; Wed, 26 Aug 2020 13:33:27 +0200 (CEST) Received: from localhost (martin@localhost) by dmz.c-home.cz (8.14.4+Sun/8.14.4/Submit) with ESMTP id 07QBXKnJ001055; Wed, 26 Aug 2020 13:33:20 +0200 (CEST) X-Authentication-Warning: dmz.c-home.cz: martin owned process doing -bs Date: Wed, 26 Aug 2020 13:33:20 +0200 (CEST) From: Martin Cerveny Reply-To: Martin Cerveny To: Corentin Labbe cc: Maxime Ripard , Chen-Yu Tsai , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: PROBLEM: SHA1 on Allwinner V3s failed In-Reply-To: <20200826090738.GA6772@Red> Message-ID: References: <20200826090738.GA6772@Red> User-Agent: Alpine 2.00 (GSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-824023566-1598441544=:771" Content-ID: Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---559023410-824023566-1598441544=:771 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; format=flowed Content-ID: Hello. On Wed, 26 Aug 2020, Corentin Labbe wrote: > On Wed, Aug 26, 2020 at 09:52:30AM +0200, Martin Cerveny wrote: >> Hello. >> >> [1.] One line summary of the problem: >> >> SHA1 on Allwinner V3s failed >> > Since only SHA1 is failling, could you try to use the "allwinner,sun8i-a33-crypto", just in case V3s has the same SHA1 HW quirck than A33. Yes. This do the trick. All startup verification passes now. Performance (SHA1 with sha1-sun4i-ss) "tcrypt mode=303 sec=1" test output attached. So, all seems to be working now. Released new patch with possibility to merge. https://github.com/mcerveny/linux/commit/e3c76436de3d8cd2b2ddaeadef879a4a4d723bf4 Regards, Martin ---559023410-824023566-1598441544=:771 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=v3s-crypto-sha1.txt Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: ATTACHMENT; FILENAME=v3s-crypto-sha1.txt cm9vdEBMaWNoZWVQaTp+IyBtb2Rwcm9iZSB0Y3J5cHQgbW9kZT0zMDMgc2Vj PTENClsgIDgwNS4yNjg1NTldIA0KWyAgODA1LjI2ODU1OV0gdGVzdGluZyBz cGVlZCBvZiBhc3luYyBzaGExIChzaGExLXN1bjRpLXNzKQ0KWyAgODA1LjI3 NTMyOF0gdGNyeXB0OiB0ZXN0ICAwICggICAxNiBieXRlIGJsb2NrcywgICAx NiBieXRlcyBwZXIgdXBkYXRlLCAgID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