Browse Source

sha256: Use the same union order as the ctx structure

This reads better. Also remove duplicated comments for the members.

Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
Jon Griffiths 10 years ago
parent
commit
1968f4d42a
1 changed files with 1 additions and 3 deletions
  1. 1 3
      ccan/crypto/sha256/sha256.h

+ 1 - 3
ccan/crypto/sha256/sha256.h

@@ -21,10 +21,8 @@
  */
  */
 struct sha256 {
 struct sha256 {
 	union {
 	union {
-		/* Array of chars */
-		unsigned char u8[32];
-		/* Array of uint32_t */
 		uint32_t u32[8];
 		uint32_t u32[8];
+		unsigned char u8[32];
 	} u;
 	} u;
 };
 };