Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1649093

[PATCH 24/27] Drivers: ccree: hash_defs.h - align block comments

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Derek Robson <robsonde@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 24/27] Drivers: ccree: hash_defs.h - align block comments
Date Wed, 24 May 2017 06:50:02 +0200
Message-ID <tKwpc-5MH-15@gated-at.bofh.it> (permalink)
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=k55iLL388WXqBZSzUNEg+IGtHkrZaMA2uqZvw2Qxbno=; b=PDSs+knyIj+V6d1Cne24ZOec3bB+v2EfW72bkF74VJZCKHBmBQdWZfkFz7piwCVlFc nyznUoOE+9Xw9ksjrzYd03vOjYm/uLky9wtDUvW6wg1+X4db7NlDGH0P0C8wlim7+LJt 0hq1b+NTpyu1buhl+0eeKx4SoAQva9iIEGz4ouJvH7a/SNVBc8WsA51GAJZ8rWgGfCwC qp6kOH6fhXWyOHaB7qNLsFqexbJtaNgBR06nTGVFuuss1+U8SsuTC2mbM/6rbW3Et6xk FiPuz9azRsxesEDlGVcJFCLzYp2Qkh44xjBRg5tb/oeYgkN59Mr0sdLJ2LGnI/FRj0hO zZBg==
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; bh=k55iLL388WXqBZSzUNEg+IGtHkrZaMA2uqZvw2Qxbno=; b=PhqIJ22Ib2UFEKZMJE1W6q4hTak1hacpM4yHivJsYHaGzrBg8BuUYqOH1Aiixvict4 CM0em7Ln7gTgAelHdSfpBpCvnhvFprixO+VfjkPWQ3K++PtdWRcNxxH5aKLAyULAtSy7 Ecu4HuCUFCAS5yazHbI0YIIzkO5/5endQcusvimsKvUnh6TKobzbCW7DLHOgSX6mLXPJ 1QnmB3UDpmJOi4cSmQ4tO1Hu2XRvm84smjncLLmE4COehzGVMhH5MdoNZUgnIbf1Hevh Z2AM2FNbkbdW3TF/ItnWl+X8dilgU/NSnW0AD1TUHEFhB8ljhA6MG123b7E3bTCttgZ8 YaGQ==
X-Gm-Message-State AODbwcBGr2TB0hxtSlIV1vxA7oxADfAOeaqs9uyAs1hOhGtV/cxt/HM1 ITlK9TuUA/bZJA==
X-Received by 10.98.107.202 with SMTP id g193mr36140750pfc.53.1495601234454; Tue, 23 May 2017 21:47:14 -0700 (PDT)
X-Mailer git-send-email 2.12.2
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 36
Organization linux.* mail to news gateway
X-Original-Cc linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Derek Robson <robsonde@gmail.com>
X-Original-Date Wed, 24 May 2017 16:47:05 +1200
X-Original-Message-ID <20170524044705.30978-1-robsonde@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1649093

Show key headers only | View raw


Fixed block comment alignment, Style fix only
Found using checkpatch

Signed-off-by: Derek Robson <robsonde@gmail.com>
---
 drivers/staging/ccree/hash_defs.h | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/ccree/hash_defs.h b/drivers/staging/ccree/hash_defs.h
index 613897038f6d..3f2b2d1521c2 100644
--- a/drivers/staging/ccree/hash_defs.h
+++ b/drivers/staging/ccree/hash_defs.h
@@ -59,13 +59,14 @@ enum HashCipherDoPadding {
 
 typedef struct SepHashPrivateContext {
 	/* The current length is placed at the end of the context buffer because the hash
-	   context is used for all HMAC operations as well. HMAC context includes a 64 bytes
-	   K0 field.  The size of struct drv_ctx_hash reserved field is  88/184 bytes depend if t
-	   he SHA512 is supported ( in this case teh context size is 256 bytes).
-	   The size of struct drv_ctx_hash reseved field is 20 or 52 depend if the SHA512 is supported.
-	   This means that this structure size (without the reserved field can be up to 20 bytes ,
-	   in case sha512 is not suppported it is 20 bytes (SEP_HASH_LENGTH_WORDS define to 2 ) and in the other
-	   case it is 28 (SEP_HASH_LENGTH_WORDS define to 4) */
+	 *  context is used for all HMAC operations as well. HMAC context includes a 64 bytes
+	 *  K0 field.  The size of struct drv_ctx_hash reserved field is  88/184 bytes depend if t
+	 *  he SHA512 is supported ( in this case teh context size is 256 bytes).
+	 *  The size of struct drv_ctx_hash reseved field is 20 or 52 depend if the SHA512 is supported.
+	 *  This means that this structure size (without the reserved field can be up to 20 bytes ,
+	 *  in case sha512 is not suppported it is 20 bytes (SEP_HASH_LENGTH_WORDS define to 2 ) and in the other
+	 * case it is 28 (SEP_HASH_LENGTH_WORDS define to 4)
+	 */
 	u32 reserved[(sizeof(struct drv_ctx_hash)/sizeof(u32)) - SEP_HASH_LENGTH_WORDS - 3];
 	u32 CurrentDigestedLength[SEP_HASH_LENGTH_WORDS];
 	u32 KeyType;
-- 
2.12.2

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 24/27] Drivers: ccree: hash_defs.h - align block comments Derek Robson <robsonde@gmail.com> - 2017-05-24 06:50 +0200

csiph-web