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


Groups > linux.kernel > #1649107

[PATCH 12/27] Drivers: ccree: ssi_fips_ll.c - align block comments

Path csiph.com!eternal-september.org!feeder.eternal-september.org!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod
From Derek Robson <robsonde@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 12/27] Drivers: ccree: ssi_fips_ll.c - align block comments
Date Wed, 24 May 2017 06:50:02 +0200
Message-ID <tKwpc-5MH-27@gated-at.bofh.it> (permalink)
X-Original-To gilad@benyossef.com, gregkh@linuxfoundation.org
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=H2IvHVd0marg7ooQJBdtRAPQJJdr4+jSlxUkB9QdBTQ=; b=svR/RlUIEWbXlXB6qO2Mr1Mb3Fz3Di7uP/Aaoobo0NPr3Lt/0UHa7eOF1a2p33s2iM YlYtZA2JrbzgnrgThVMpWJMXpMUr1v8RiMwgrRdiSjp62BREiPdIr9H4QrCwXr8WrnBR TnG9l7FXmmADFK/skEu5mzHyNIOf9ES8nBXdJtyUamu53MFuheQz1CRugtio6EM7Ael/ 3SjSx5SNLYzOc9oqFfs5gCSlKIUqIq5t4r23zkIeCnn72NOPP+Dvo4OPfi5H/RD4urdg UGuQTDGBT+77xL2dqkomh0e5TjXuUYgM86/WYvugUbpf61/igG2mfNfNkafiyp9U8AXQ EVww==
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=H2IvHVd0marg7ooQJBdtRAPQJJdr4+jSlxUkB9QdBTQ=; b=iimcZtRFDafMFjywY6YG00C1zm3SphtJby8KXqr5fSRaEtW+v4hA/KyqKwx6e9vgz9 fEZG4sZu+HOrkfoWJ3jlVQ7g7i8GbjURW1VdSPfmfnoosv1XMhVQlO+MdnXOvXmPdNtK rbvgTR4OM1Iuk82Kzw0e2gdAnQHTdkv0xCzpIkbiVVpEJNVYqtsePSa69NZ5IBgjHobC 9ZqQqkM0P/DGrAU11ZFCq4+znuPhVYOjmWlb3bhbHvzADo5LTZJaxfIcKJccFRvN6e1t iei+HEc64FeqURMtCB4S219NuwOIoFVT/ibzfGhcQvZEhhjAbkAaV4lfEJE/vzpCE7tc +PEg==
X-Gm-Message-State AODbwcBoxATp8AjVyo8x48fKDpsmeU1a4xi6Vf/5nvx9k2M1Jp5uPfKH L8+H7PPcnlG2QA==
X-Received by 10.99.141.73 with SMTP id z70mr7445137pgd.187.1495601040705; Tue, 23 May 2017 21:44:00 -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 63
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:43:52 +1200
X-Original-Message-ID <20170524044352.30423-1-robsonde@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1649107

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/ssi_fips_ll.c | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/drivers/staging/ccree/ssi_fips_ll.c b/drivers/staging/ccree/ssi_fips_ll.c
index 7c7c922f0788..cb487d747ee8 100644
--- a/drivers/staging/ccree/ssi_fips_ll.c
+++ b/drivers/staging/ccree/ssi_fips_ll.c
@@ -15,9 +15,9 @@
  */
 
 /**************************************************************
-This file defines the driver FIPS Low Level implmentaion functions,
-that executes the KAT.
-***************************************************************/
+ * This file defines the driver FIPS Low Level implmentaion functions,
+ * that executes the KAT.
+ ***************************************************************/
 #include <linux/kernel.h>
 
 #include "ssi_driver.h"
@@ -816,7 +816,8 @@ ssi_hmac_fips_run_test(struct ssi_drvdata *drvdata,
 		       dma_addr_t digest_bytes_len_dma_addr)
 {
 	/* The implemented flow is not the same as the one implemented in ssi_hash.c (setkey + digest flows).
-	   In this flow, there is no need to store and reload some of the intermidiate results. */
+	 * In this flow, there is no need to store and reload some of the intermidiate results.
+	 */
 
 	/* max number of descriptors used for the flow */
 	#define FIPS_HMAC_MAX_SEQ_LEN 12
@@ -948,9 +949,9 @@ ssi_hmac_fips_run_test(struct ssi_drvdata *drvdata,
 	idx++;
 
 	/* at this point:
-	   tmp_digest = H(o_key_pad)
-	   k0 = H(i_key_pad || m)
-	   */
+	 * tmp_digest = H(o_key_pad)
+	 * k0 = H(i_key_pad || m)
+	 */
 
 	/* Loading hash opad xor key state */
 	HW_DESC_INIT(&desc[idx]);
@@ -1413,8 +1414,10 @@ ssi_gcm_fips_run_test(struct ssi_drvdata *drvdata,
 	idx++;
 
 	/* Configure Hash Engine to work with GHASH.
-	   Since it was not possible to extend HASH submodes to add GHASH,
-	   The following command is necessary in order to select GHASH (according to HW designers)*/
+	 * Since it was not possible to extend HASH submodes to add GHASH,
+	 * The following command is necessary in order to 
+	 * select GHASH (according to HW designers)
+	 */
 	HW_DESC_INIT(&desc[idx]);
 	HW_DESC_SET_DIN_NO_DMA(&desc[idx], 0, 0xfffff0);
 	HW_DESC_SET_DOUT_NO_DMA(&desc[idx], 0, 0, 1);
-- 
2.12.2

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


Thread

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

csiph-web