From patchwork Wed Oct 14 19:11:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 7397641 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D051ABEEA4 for ; Wed, 14 Oct 2015 19:11:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F200520632 for ; Wed, 14 Oct 2015 19:11:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 29EA520600 for ; Wed, 14 Oct 2015 19:11:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932195AbbJNTLM (ORCPT ); Wed, 14 Oct 2015 15:11:12 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:37137 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932093AbbJNTLL (ORCPT ); Wed, 14 Oct 2015 15:11:11 -0400 Received: by wijq8 with SMTP id q8so96151710wij.0; Wed, 14 Oct 2015 12:11:09 -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=UoyKktLCunEiVa/vrYVOYsGBThSSxoyza16gu/6mri0=; b=pAyzC91JuSXMVLun23rkDvLf0Ogxw2qJxcfiXbhzUJmKPRZ7BF4BxVdua2q4qp11Qp 1KgL/UaITAtlrMC3EvDlqT4uyPmz+TZ2eLB1xCHmo4y+yW7Am/GsM0RPrey/DLzwtysE +s48LWM0iyZT3CFfOp3UMCp3ZGcNWygkIShMh9M98Tyf6Ll4wfyGDNbc93SGs1oKr4oI TxeQybEWxJqiSyB6O5SjSXMZHfV3UKI0bufAI9z3efQrf4FmTC1FSoA2QwDmDPLcfWnp NANxaYlTJOyqtq9qL1QNKmHA1lrdPtOjsnaug7af6w2sEXrDr8tmuCN71Axv0LSH9Cns q+yA== X-Received: by 10.180.211.176 with SMTP id nd16mr13407020wic.83.1444849869312; Wed, 14 Oct 2015 12:11:09 -0700 (PDT) Received: from Red.local (ANice-651-1-429-185.w83-201.abo.wanadoo.fr. [83.201.253.185]) by smtp.googlemail.com with ESMTPSA id vh4sm4699196wjc.10.2015.10.14.12.11.08 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Oct 2015 12:11:08 -0700 (PDT) From: LABBE Corentin To: davem@davemloft.net, heiko.carstens@de.ibm.com, herbert@gondor.apana.org.au, schwidefsky@de.ibm.com Cc: LABBE Corentin , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: [PATCH] s390: crypto: replace raw value by their coresponding define Date: Wed, 14 Oct 2015 21:11:00 +0200 Message-Id: <1444849860-16334-1-git-send-email-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.4.9 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, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 SHA_MAX_STATE_SIZE is just the number of u32 word for SHA512. So replace the raw value "16" by their meaning (SHA512_DIGEST_SIZE / 4) Signed-off-by: LABBE Corentin --- arch/s390/crypto/sha.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/crypto/sha.h b/arch/s390/crypto/sha.h index f4e9dc7..10f2007 100644 --- a/arch/s390/crypto/sha.h +++ b/arch/s390/crypto/sha.h @@ -19,7 +19,7 @@ #include /* must be big enough for the largest SHA variant */ -#define SHA_MAX_STATE_SIZE 16 +#define SHA_MAX_STATE_SIZE (SHA512_DIGEST_SIZE / 4) #define SHA_MAX_BLOCK_SIZE SHA512_BLOCK_SIZE struct s390_sha_ctx {