Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2778905ybl; Mon, 19 Aug 2019 07:25:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjZjejN+JpJOw+GBuxmM3WBMr6tohebbhOvLSksRqm1EXyVmWCXeOPUr6YvLuLXZBfy/Fv X-Received: by 2002:a17:902:8a87:: with SMTP id p7mr22738296plo.124.1566224703086; Mon, 19 Aug 2019 07:25:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566224703; cv=none; d=google.com; s=arc-20160816; b=GeujGyWZ04TwcYFI1pJqseXpgqKANqihGPEtXc1QWTrpBrFI2YikqtEe9fRsw2bmNe 01+7heqRsL+dHylqjRuop7X6h/VJiJYmxQoGpiCUFYHWWDPHYMUyzTtBrxOwezjf+xk8 8w9vD55PE8W7SJISz2uPHI58xKBaTk2PbQ0a0c+z/Zpk8paMxo5UiUPOWf1XVzgDkxVL 7EnFaTPKOs4w+JXPZ+P9Fz6J8RPJTBfyU/sPBvSX5DQPqG+FGi8nEFbfr0Ib64L7pWTM L3DfxUihk2Vkn82+OjvIJBQyNCS2gdLCtBpwuztreUTAtTAPUhLb6z5xZJUCGtS1UEbE 4oDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Ze9YdeG54uGI/7oCptuYPG1qBhEdnJDuSAQDXLeVnX8=; b=E9V+TWL56xPCxdKQ6XM6fm1WthCm3689Y6Bzkhc4NIVtqAQhEoBeF6QfPFZazFvf63 Miz5x/nVHopqWyrkEezibzcj4KPGNb7a2Ltg9h3pf1sDmYjpMOlxnrdBOxL/XpZSXXTE qDswU5WA93Tq15OoIVH5HL/+6hueFcW6ubM2USQhoxkqyuDMwsAztEFEmnGKsF+TEzMt SxDMo3oEZ8kDnuH9OtbUzNIKhxPuBZgTemYx87TK6HwTE7YcddIsLG/4BxBR1YC1BD5T X1potxn+Qk81G6+qGOMzQ9QXhRb4r2Sop02fZUBULImbDUiwt3K+fKeV6lud3mO9zetA 1aoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dDjKzbkH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1si8886817pjy.39.2019.08.19.07.24.42; Mon, 19 Aug 2019 07:25:03 -0700 (PDT) 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=pass header.i=@linaro.org header.s=google header.b=dDjKzbkH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726810AbfHSOYM (ORCPT + 99 others); Mon, 19 Aug 2019 10:24:12 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:40282 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726949AbfHSOYL (ORCPT ); Mon, 19 Aug 2019 10:24:11 -0400 Received: by mail-wm1-f65.google.com with SMTP id v19so1786615wmj.5 for ; Mon, 19 Aug 2019 07:24:10 -0700 (PDT) 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=Ze9YdeG54uGI/7oCptuYPG1qBhEdnJDuSAQDXLeVnX8=; b=dDjKzbkH+8BuYJwEP1RMQY7sy1oABKnDPP6BZiuKeRpsp1tRLXNnZuDXQfS2QxV9wu 2Ndjj6gIYsj46tlKHLfCAl0hUJXoTnQymqYntNbhx2KyNdty+5H398adZV9NFh+bHEZw M/GNc2IAga8TN5JRedboXn68L9aHaGiPe33lnS3CB0DwT48xGzxuRU/WZxdwYqeLTlEr 0/8AQKldpcdz0u2su35MkNWYOkYYzsTUX230d01gOf6w3kmfEoXDOjrMHswvZHT10D9A vfakDyKoQ4heQd5Q61UiKtBlf+PIrUqTPdy2ZFOdxbpznrVayWnD7iZd5gA3qTZLl2xh CqwA== 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:in-reply-to :references; bh=Ze9YdeG54uGI/7oCptuYPG1qBhEdnJDuSAQDXLeVnX8=; b=A/Mhh8lVrprVyHOtN1xhSne63+nL3L85cKPtJaxSnHPlwuyrNL/edwsA86zC5wHxuv HgpUhs/O59Nlaf+L1mpH+hxo0yoYzlKzy/7zl+sUdzwmJ+drJroA4o+erNsdhckOABUO p7QOtg/jPT5WKTPLFi1gse3zn+16RtoTmfxKDtKYs519F9e+kS49b2kn0t02KNw+UUxr +wXXPiqOpSxSXGkqcqEkOC91mLP4YYC/wtc5NkBk01b6n9pzN8KtVf5HsjSLJLkg62fm mK5SO7cw6OApkQCsJ8r0ZHkqfMmskf8RYgSBi5Vmq6ef4rMsp0kfW00Gd1VAHoMBxpyF jyIQ== X-Gm-Message-State: APjAAAX8Idv/nQmgPLYDImAP5HlhrP5OT3ei0Z0Y6qYlm8pfWu89Tirn eMVLvFoNHRXfwzgJR0vrj+UCmzc9TdK2jw== X-Received: by 2002:a1c:1d42:: with SMTP id d63mr19913988wmd.34.1566224649604; Mon, 19 Aug 2019 07:24:09 -0700 (PDT) Received: from localhost.localdomain (11.172.185.81.rev.sfr.net. [81.185.172.11]) by smtp.gmail.com with ESMTPSA id o17sm13643356wrx.60.2019.08.19.07.24.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Aug 2019 07:24:09 -0700 (PDT) From: Ard Biesheuvel To: linux-crypto@vger.kernel.org Cc: herbert@gondor.apana.org.au, Ard Biesheuvel , Krzysztof Kozlowski , Vladimir Zapolskiy , Kamil Konieczny , linux-samsung-soc@vger.kernel.org Subject: [PATCH 2/2] crypto: s5p - use correct block size of 1 for ctr(aes) Date: Mon, 19 Aug 2019 17:22:26 +0300 Message-Id: <20190819142226.1703-3-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190819142226.1703-1-ard.biesheuvel@linaro.org> References: <20190819142226.1703-1-ard.biesheuvel@linaro.org> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Align the s5p ctr(aes) implementation with other implementations of the same mode, by setting the block size to 1. Signed-off-by: Ard Biesheuvel --- drivers/crypto/s5p-sss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c index ef90c58edb1f..010f1bb20dad 100644 --- a/drivers/crypto/s5p-sss.c +++ b/drivers/crypto/s5p-sss.c @@ -2173,7 +2173,7 @@ static struct crypto_alg algs[] = { .cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | CRYPTO_ALG_ASYNC | CRYPTO_ALG_KERN_DRIVER_ONLY, - .cra_blocksize = AES_BLOCK_SIZE, + .cra_blocksize = 1, .cra_ctxsize = sizeof(struct s5p_aes_ctx), .cra_alignmask = 0x0f, .cra_type = &crypto_ablkcipher_type, -- 2.17.1