From patchwork Tue Nov 29 13:05:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 84797 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1585615qgi; Tue, 29 Nov 2016 05:05:59 -0800 (PST) X-Received: by 10.98.71.93 with SMTP id u90mr27413565pfa.177.1480424759257; Tue, 29 Nov 2016 05:05:59 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s3si59873107pfe.68.2016.11.29.05.05.59; Tue, 29 Nov 2016 05:05:59 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org; 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=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933402AbcK2NFr (ORCPT + 1 other); Tue, 29 Nov 2016 08:05:47 -0500 Received: from mail-wj0-f169.google.com ([209.85.210.169]:34835 "EHLO mail-wj0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933366AbcK2NFq (ORCPT ); Tue, 29 Nov 2016 08:05:46 -0500 Received: by mail-wj0-f169.google.com with SMTP id v7so144534489wjy.2 for ; Tue, 29 Nov 2016 05:05:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KA+iU/A8AQbm6hYU6qi7YC1mJ6jBNyG2cBW19a2sSnU=; b=gy4QMaluzUvUicjj9EMFFAFnFKxBVRWI/2uK6Rmh9hEL2C+Qr0ImvN+gF7r88fUxIm 7Rn9rYpZyxpOItMtIvpZjYyCCWJ4jfekwIEPXEy5T6+F/tc24A/dRSIrqyxfDbMiqowc 1pOdERtYq4vvwGPzt3756KLvUbxj/obAqv30k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KA+iU/A8AQbm6hYU6qi7YC1mJ6jBNyG2cBW19a2sSnU=; b=Xtm6GebhFUAFvimSHOBapYWY2/e11IBnNQjPHjqLllkeN+BPtwJq+PEkfaV9G5SBmd WZ/hAKQxYfeMZlQqMznEPDQsfO6fBRvDjd/MWcawDn9yQDO/7Qb3a4LNG5x9EriTFbgq 1RNPpPBGpyL0TTk9dZsV8EN0RuK19pXwOesUMSzneJrTvD4TWKmvVuLNUbm1Cfc+NIfo DxtfdVm9tHcXe5ATIiAhk23mjhiQLKAWUN0zoWsa77iE1p+uIjrPTVk+d+BQAYFj6YBw i0oSOXgZyBePi5EyQfWJKMaBdQeJtAyvKgSbOdQ9fpLPT9CDb82AlYvw0nztwoWdwBHb 5grA== X-Gm-Message-State: AKaTC010gUH8/5CCx7CQDiCJWLED+lYRyHs52ZLPGJ6d2Juh3/v7qmmoWAFzPcZ/pTa9BmKa X-Received: by 10.194.177.197 with SMTP id cs5mr27035388wjc.6.1480424745147; Tue, 29 Nov 2016 05:05:45 -0800 (PST) Received: from localhost.localdomain ([105.138.199.36]) by smtp.gmail.com with ESMTPSA id n5sm2749312wmf.0.2016.11.29.05.05.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Nov 2016 05:05:44 -0800 (PST) From: Ard Biesheuvel To: linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au Cc: linux-arm-kernel@lists.infradead.org, Ard Biesheuvel Subject: [PATCH 4/4] crypto: arm64/aes-ce-ctr: fix skcipher conversion Date: Tue, 29 Nov 2016 13:05:33 +0000 Message-Id: <1480424733-10797-4-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1480424733-10797-1-git-send-email-ard.biesheuvel@linaro.org> References: <1480424733-10797-1-git-send-email-ard.biesheuvel@linaro.org> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Fix a missing statement that got lost in the skcipher conversion of the CTR transform. Signed-off-by: Ard Biesheuvel --- arch/arm64/crypto/aes-glue.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/crypto/aes-glue.c b/arch/arm64/crypto/aes-glue.c index 5c43b92b3714..4e3f8adb1793 100644 --- a/arch/arm64/crypto/aes-glue.c +++ b/arch/arm64/crypto/aes-glue.c @@ -206,6 +206,7 @@ static int ctr_encrypt(struct skcipher_request *req) (u8 *)ctx->key_enc, rounds, blocks, walk.iv, first); err = skcipher_walk_done(&walk, walk.nbytes % AES_BLOCK_SIZE); + first = 0; } if (walk.nbytes) { u8 __aligned(8) tail[AES_BLOCK_SIZE];