Save leaf_node and node_offset as character array
[openssl.git] / crypto / include / internal / blake2_locl.h
index 390065a8b2b04fbb0aef94ba83f2fc2827a76af0..ba438f4e3e76b619939aaa55de544040bba0653b 100644 (file)
@@ -39,7 +39,7 @@ struct blake2s_param_st {
     uint8_t  key_length;    /* 2 */
     uint8_t  fanout;        /* 3 */
     uint8_t  depth;         /* 4 */
-    uint32_t leaf_length;   /* 8 */
+    uint8_t  leaf_length[4];/* 8 */
     uint8_t  node_offset[6];/* 14 */
     uint8_t  node_depth;    /* 15 */
     uint8_t  inner_length;  /* 16 */
@@ -62,8 +62,8 @@ struct blake2b_param_st {
     uint8_t  key_length;    /* 2 */
     uint8_t  fanout;        /* 3 */
     uint8_t  depth;         /* 4 */
-    uint32_t leaf_length;   /* 8 */
-    uint64_t node_offset;   /* 16 */
+    uint8_t  leaf_length[4];/* 8 */
+    uint8_t  node_offset[8];/* 16 */
     uint8_t  node_depth;    /* 17 */
     uint8_t  inner_length;  /* 18 */
     uint8_t  reserved[14];  /* 32 */