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: 9451987 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E53CE60757 for ; Tue, 29 Nov 2016 13:05:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D822328319 for ; Tue, 29 Nov 2016 13:05:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CCC972832F; Tue, 29 Nov 2016 13:05:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F0D528330 for ; Tue, 29 Nov 2016 13:05:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933402AbcK2NFr (ORCPT ); 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 X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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];