Received: by 10.223.164.202 with SMTP id h10csp503055wrb; Mon, 6 Nov 2017 10:11:38 -0800 (PST) X-Google-Smtp-Source: ABhQp+SmSZrKhFg3YQlBiTGCtA5N02Wu94qa+OqTefEuoYlyTfGps9I9I84vGnpd8/6N8KsidrIW X-Received: by 10.98.194.193 with SMTP id w62mr17808014pfk.67.1509991898616; Mon, 06 Nov 2017 10:11:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509991898; cv=none; d=google.com; s=arc-20160816; b=Gz8OXKL8SIF948zyN79aC2QEWSdTYkUyoXp3FXcWRJLoYBA7aFjNqROYCs76gRPsSN VyGZ8ELfEdFkjjVckDmdF1PW4/IRItv9Yy1Q7+l6nyOGtB2O4IH3GkHhLmCgUYAuz4ZB ls34Vh60XK4VJ4/Mr5Fg1zBITTkUP9eZVHvPZwFrGLVkncDX7Z8gVO5N1fBlvzOF5dTz iHcxzqf0slH2wKUV/OJqEC1U2WErPYw3fWw/8p2PHjPnn8LL79VNlTyUZc0O3IhiBxAq /EvugIEnuTJQgXeLQszOQF6eJeraqzJREMI/Jg4q811NXIbj/24l3GP7yHGvlGqNnH35 hdpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=yhCkemrBqBS8LkZPiqBIHmMEbWXQay/M2eHfNrAA0CQ=; b=Fhv1Wi54KmXZsTuBIIurHTRAFXSNji+9OZuANOwGjoOYJWFblsa5jiEptFBrP1wx/N PSm+GFNxHmI7X6cIBICZ+uEuwPrxNxnxoy/JsiFcIOsmLEilNPrlLpM4t9iRbuLEvpq6 ZH0ew0kGqMUM4mSjBfAdaDomLR5UHRDccz7w4VwLWd6U34iW71gTgrqhdt3rqhcHztnE j+qnF7B5ypULeKRCghpfjKnLTb/F146XMYtLJ/mgf8Dp0p+ZRhZMDu1or+ZFHVgOofz+ oKJHsfCv41keSnx2TNeCx9T1XO6yGkRAUqtGSQvlD8qObWHMN/qkv3KC4MkyzsYp7mDm 3fpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i128si12605214pfg.17.2017.11.06.10.11.24; Mon, 06 Nov 2017 10:11:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932464AbdKFPp6 (ORCPT + 97 others); Mon, 6 Nov 2017 10:45:58 -0500 Received: from esa4.microchip.iphmx.com ([68.232.154.123]:5464 "EHLO esa4.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932155AbdKFPp5 (ORCPT ); Mon, 6 Nov 2017 10:45:57 -0500 X-IronPort-AV: E=Sophos;i="5.43,434,1503385200"; d="scan'208";a="8360878" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 06 Nov 2017 08:45:56 -0700 Received: from localhost.localdomain (10.10.76.4) by chn-sv-exch04.mchp-main.com (10.10.76.105) with Microsoft SMTP Server id 14.3.352.0; Mon, 6 Nov 2017 08:45:55 -0700 Subject: Re: [PATCH 2/2] crypto: atmel-aes - Reset the controller before each use To: Romain Izard CC: Herbert Xu , "David S . Miller" , Nicolas Ferre , , , References: <20171031152524.25216-1-romain.izard.pro@gmail.com> <20171031152524.25216-3-romain.izard.pro@gmail.com> From: Tudor Ambarus Message-ID: Date: Mon, 6 Nov 2017 17:45:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20171031152524.25216-3-romain.izard.pro@gmail.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Romain, On 10/31/2017 05:25 PM, Romain Izard wrote: > When using the rfc4543(gcm(aes))) mode, the registers of the hardware > engine are not empty after use. If the engine is not reset before its > next use, the following results will be invalid. > > Always reset the hardware engine. Thanks for the fix! I could reproduce the issue only when running rfc4543(gcm(aes))) and then, immediately after, ecb(aes). Have you encountered this bug with other combination of algorithms? I'm trying to isolate the bug so that we can have a more fine-grained fix. Cheers, ta From 1583337252691999271@xxx Mon Nov 06 17:07:52 +0000 2017 X-GM-THRID: 1582787357553038657 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread