All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 24/27] Drivers: ccree: hash_defs.h - align block comments
@ 2017-05-24  4:47 ` Derek Robson
  0 siblings, 0 replies; 3+ messages in thread
From: Derek Robson @ 2017-05-24  4:47 UTC (permalink / raw)
  To: gilad, gregkh
  Cc: devel, Derek Robson, driverdev-devel, linux-crypto, linux-kernel

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 24/27] Drivers: ccree: hash_defs.h - align block comments
@ 2017-05-24  4:47 ` Derek Robson
  0 siblings, 0 replies; 3+ messages in thread
From: Derek Robson @ 2017-05-24  4:47 UTC (permalink / raw)
  To: gilad, gregkh
  Cc: linux-crypto, driverdev-devel, devel, linux-kernel, Derek Robson

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 24/27] Drivers: ccree: hash_defs.h - align block comments
@ 2017-05-24  4:47 ` Derek Robson
  0 siblings, 0 replies; 3+ messages in thread
From: Derek Robson @ 2017-05-24  4:47 UTC (permalink / raw)
  To: gilad, gregkh
  Cc: devel, Derek Robson, driverdev-devel, linux-crypto, linux-kernel

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

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-24  4:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-24  4:47 [PATCH 24/27] Drivers: ccree: hash_defs.h - align block comments Derek Robson
2017-05-24  4:47 ` Derek Robson
2017-05-24  4:47 ` Derek Robson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.