Received: by 10.223.164.221 with SMTP id h29csp4021441wrb; Tue, 31 Oct 2017 08:27:25 -0700 (PDT) X-Google-Smtp-Source: ABhQp+R2MvDpt+p2LNxQAV6OpqFeCE15s5+zvCWbmiC3ZmGF8SfAb81TVxDKfab5uBlmUSfptCwf X-Received: by 10.84.234.199 with SMTP id i7mr2177660plt.15.1509463645146; Tue, 31 Oct 2017 08:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509463645; cv=none; d=google.com; s=arc-20160816; b=EjweuhWxkCxSLUcTvFJWWf1Rn/oHcDcyagBApzzMHwqiu7D/WTrBb0lBZyVFDSBOjg nMr0ZrgK2aLV3QYeUdLqxP9XuHAyevVzMT+pTBlgZ7KlMlQXpvM/yC2uRuXQbB7bvEdk 65mqrvJckSBAD72yFfhp1YPD0VleJ0mQrr7Bnq9SXpm0C30dCUoDe8RFlj0h2ow3di68 fu2LZ5GKHP4S/QWHbgglTGuDsf36u5wxycIqdHE12Vdb1hcST5vmLkbICmd/gv3tx00M MnReGC/sk9ZY91IDfy6GGDm1U5XV0Kl4YyeNQWhOb0JRp4CR2tmJFc0r7ULQ6Ev0f+uu frXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=TQnxLJsIDr2ofa9uMIsPXLf3jQ5tG26pmF4prgw0r7w=; b=OntlxOIxJNs0xoMjSdGUftn1EXz0h76Vx9y3Ch2spZ+1t2nMBafMXeWHWKWXTknDm3 /mcsZlgTEEPqQa03Hq/XKIVOnerP6+7OTqAWtvaS1drb613FEr6Up/NzstBNqOPs+KRG JQbGwQu625G/5yXtBhLxdQ5Zrxw/sEQLXz5+W/dlh4LEiLtqYwOFxzo4bIaT5CwDjPCZ 2oe1tekM59JxxcPnXv8IIaKn7a57q2WMqnYQrSYvC2LQpAVJOYpxM5BE9NzsZKcE5awh qPaa9oeFwPtR/3n41VzLuSGzCZqNrEazW9svJ28//NsJL03QMAeMXNb2JDRe/9nvqeOT LoZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YJfKyh/y; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q83si1857464pfj.99.2017.10.31.08.27.10; Tue, 31 Oct 2017 08:27:25 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YJfKyh/y; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753474AbdJaP0A (ORCPT + 99 others); Tue, 31 Oct 2017 11:26:00 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:56969 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751366AbdJaPZ5 (ORCPT ); Tue, 31 Oct 2017 11:25:57 -0400 Received: by mail-wr0-f196.google.com with SMTP id r79so16263206wrb.13; Tue, 31 Oct 2017 08:25:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=TQnxLJsIDr2ofa9uMIsPXLf3jQ5tG26pmF4prgw0r7w=; b=YJfKyh/ygZ68pmMjaCvlqM5y90KY+wzstMW6RHEUM8SekySkWYb00d7qlOLa7vttBr 9H9NRbesQaytgCJ9amXYKNtV0AXw9Bb3CMQx9RL3GHk1GhdMQSt35Bk41OSnLUhpVVV/ xDeevkdQdAEo+c34qvFPsCylmOKGDUmQawITb3SDo0w3qMDerfTKTMNGsBvcQZzyTsns iMpQQ+dTwibZ2HLZF/8FT9WmLKzA38K49FkPr3QJDwiXF6rbVC+okK1pHM92jZ4B4xJj 525ThRkWLZDfMLm1QfCFN2jGQcivIXdJHWoCdCOeONWclOYKWJbA/7Uz2e16jqAoyr4j eYFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TQnxLJsIDr2ofa9uMIsPXLf3jQ5tG26pmF4prgw0r7w=; b=Y6eyy5FQrzlNHhx5+oZl8WedPJZRlHc/lVTYDWChEU5R+W6BsSBtN3P6blqbCX0T5E Alx3Clj9SeHksE/RWuB3yUrteftyAX0TmTTf8s589oPz/Gd+8a/EynoQFSHyrVW4YbLz LdgkaSPc+RlkysfmC1vL15+uWPLJW3eRr0j1S6pNSRcxQsW8uzj6DaTgGmM3RnZB/LHI EqKe72c7TDrYWaf3Cvlle4Zp5Xrm8VZjJISh3f5JpJNjfoTA6qxV5W6zNljeKJzi8Ddh gOjSJBHnuEUELkyCHgKULJbur6CoVp1GfAH1dc7S5+5QhO5pesRlo44V1FqFG4e/GYs9 JWsA== X-Gm-Message-State: AMCzsaVfCQKPr8Pmw6AabcXRxhC7rwDrbnxMgFIZ+PzrzNDXRht8wf38 G9bLSacAC/unez4RriVvf00= X-Received: by 10.223.183.75 with SMTP id n11mr2327622wre.185.1509463556156; Tue, 31 Oct 2017 08:25:56 -0700 (PDT) Received: from localhost.localdomain (146.187.3.109.rev.sfr.net. [109.3.187.146]) by smtp.gmail.com with ESMTPSA id p23sm3764358wrb.76.2017.10.31.08.25.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Oct 2017 08:25:55 -0700 (PDT) From: Romain Izard To: Herbert Xu , "David S . Miller" , Tudor Ambarus Cc: Nicolas Ferre , linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Romain Izard Subject: [PATCH 0/2] Fixes for the Atmel AES crypto module Date: Tue, 31 Oct 2017 16:25:22 +0100 Message-Id: <20171031152524.25216-1-romain.izard.pro@gmail.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After encountering an issue with cts(cbc(aes)) in the Atmel AES module, I have used tcrypt and libkcapi's test suite to validate my fix. This led me to observe some other issues. This series includes the IV issue correction for the Atmel AES crypto engine, as well as a secondary issue observed when running 'insmod tcrypt.ko mode=10' and 'insmod tcrypt.ko mode=152' on a SAMA5D2 board. The libkcapi test suite still reports some problems, for example when the input data is too large to fit into an intermediate buffer in unaligned cases. And it seems that with the v4.14 updates, new asynchronous tests are enabled and report new issues. Romain Izard (2): crypto: atmel-aes - properly set IV after {en,de}crypt crypto: atmel-aes - Reset the controller before each use drivers/crypto/atmel-aes.c | 50 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 40 insertions(+), 10 deletions(-) -- 2.14.1 From 1582947717320966055@xxx Thu Nov 02 09:56:22 +0000 2017 X-GM-THRID: 1575057680710293570 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread