sha256: Use the same union order as the ctx structure
authorJon Griffiths <jon_p_griffiths@yahoo.com>
Tue, 22 Mar 2016 22:51:50 +0000 (11:51 +1300)
committerJon Griffiths <jon_p_griffiths@yahoo.com>
Mon, 22 Aug 2016 12:29:46 +0000 (00:29 +1200)
This reads better. Also remove duplicated comments for the members.

Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
ccan/crypto/sha256/sha256.h

index 3e1a4919b9210269809824ff8797a24e8860251e..1297c41f48f0fabbc9bfda41c9dd93627e0c1858 100644 (file)
  */
 struct sha256 {
        union {
-               /* Array of chars */
-               unsigned char u8[32];
-               /* Array of uint32_t */
                uint32_t u32[8];
+               unsigned char u8[32];
        } u;
 };