summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2021-08-18 12:29:40 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2021-08-18 12:29:40 +0900
commitcbbdc015bf522d4aff656ff0417b83144ab4bb2a (patch)
treea312e2e6654829e54723dbf713bc15521b7b7869
parent6e40fca726357f13790065a27e2a0b333129fc54 (diff)
downloadlibgcrypt-cbbdc015bf522d4aff656ff0417b83144ab4bb2a.tar.gz
cipher: Fix the order of fields of gcry_md_context.
* cipher/md.c (struct gcry_md_context): Fix for better memory usage. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
-rw-r--r--cipher/md.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cipher/md.c b/cipher/md.c
index d6a80427..ea9ade19 100644
--- a/cipher/md.c
+++ b/cipher/md.c
@@ -261,14 +261,14 @@ typedef struct gcry_md_list
struct gcry_md_context
{
int magic;
- size_t actual_handle_size; /* Allocated size of this handle. */
- FILE *debug;
struct {
unsigned int secure:1;
unsigned int finalized:1;
unsigned int bugemu1:1;
unsigned int hmac:1;
} flags;
+ size_t actual_handle_size; /* Allocated size of this handle. */
+ FILE *debug;
GcryDigestEntry *list;
};