From patchwork Tue Oct 20 18:05:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 7449621 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A2FDD9F1C3 for ; Tue, 20 Oct 2015 18:05:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C7C28207DE for ; Tue, 20 Oct 2015 18:05:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E947A20612 for ; Tue, 20 Oct 2015 18:05:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751691AbbJTSFV (ORCPT ); Tue, 20 Oct 2015 14:05:21 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:34272 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751178AbbJTSFU (ORCPT ); Tue, 20 Oct 2015 14:05:20 -0400 Received: by wikq8 with SMTP id q8so58545196wik.1; Tue, 20 Oct 2015 11:05:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=tNaABQxcwad8muPTwanykVKUY+lJ1EhdKdKGUqJjaWs=; b=Zw/mFRmKYugDTUcbZbSk/NvtZLvrOIdKZsT2zVmycf+GQN2IyUvWNj0mNRPSBFfOEy 4TCAUbcjohj0xcq06S5wC5Mmh/mXUSa0V82a/eXzYUKEKqWzxB8hTsAvPBw9MO3dCUQn KhfG7VobHmGHJFFORy7FZcixNPKJSGbfcqG5AUMu6kpN7CkeODqNMs1g4asfgVvmt7un /hamCNmuhkM3Ojc8epvCb5J+F3PwKeudCV5w5ZBSaQDZ8ZxsfutrniN5wkjnyzg0Cs6K yU8848dIMo7QImHN8V5YVmlOVYoMNPcB1UiaVUJE4MT5yB7ZxLLmUncx1nkvfa2JA52n Gjaw== X-Received: by 10.180.206.212 with SMTP id lq20mr5181966wic.90.1445364319370; Tue, 20 Oct 2015 11:05:19 -0700 (PDT) Received: from Red.local (ANice-651-1-191-74.w83-197.abo.wanadoo.fr. [83.197.127.74]) by smtp.googlemail.com with ESMTPSA id lv4sm5259455wjb.43.2015.10.20.11.05.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Oct 2015 11:05:18 -0700 (PDT) From: LABBE Corentin To: clabbe.montjoie@gmail.com, davem@davemloft.net, herbert@gondor.apana.org.au, linux-arm-kernel@lists.infradead.org, maxime.ripard@free-electrons.com Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: sun4i-ss: add missing statesize Date: Tue, 20 Oct 2015 20:05:10 +0200 Message-Id: <1445364310-4277-1-git-send-email-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.4.10 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP sun4i-ss implementaton of md5/sha1 is via ahash algorithms. A recent change make impossible to load them without giving statesize. This patch specifiy statesize for sha1 and md5. Signed-off-by: LABBE Corentin --- drivers/crypto/sunxi-ss/sun4i-ss-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/sunxi-ss/sun4i-ss-core.c b/drivers/crypto/sunxi-ss/sun4i-ss-core.c index eab6fe2..107cd2a 100644 --- a/drivers/crypto/sunxi-ss/sun4i-ss-core.c +++ b/drivers/crypto/sunxi-ss/sun4i-ss-core.c @@ -39,6 +39,7 @@ static struct sun4i_ss_alg_template ss_algs[] = { .import = sun4i_hash_import_md5, .halg = { .digestsize = MD5_DIGEST_SIZE, + .statesize = sizeof(struct md5_state), .base = { .cra_name = "md5", .cra_driver_name = "md5-sun4i-ss", @@ -66,6 +67,7 @@ static struct sun4i_ss_alg_template ss_algs[] = { .import = sun4i_hash_import_sha1, .halg = { .digestsize = SHA1_DIGEST_SIZE, + .statesize = sizeof(struct sha1_state), .base = { .cra_name = "sha1", .cra_driver_name = "sha1-sun4i-ss",