diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2016-03-11 01:06:51 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-03-11 10:39:10 -0500 |
commit | a57410899af60eff20dfe932283775edc2603c2a (patch) | |
tree | 31c008cf4f9ea5d804a00353e82d77fbecb1158e /crypto/include | |
parent | 208527a75dd9584e2715c0eebcfad8c730d0dfae (diff) | |
download | openssl-a57410899af60eff20dfe932283775edc2603c2a.tar.gz |
Save leaf_node and node_offset as character array
They are not numbers in the machine byte order.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/include')
-rw-r--r-- | crypto/include/internal/blake2_locl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/include/internal/blake2_locl.h b/crypto/include/internal/blake2_locl.h index 390065a8b2..ba438f4e3e 100644 --- a/crypto/include/internal/blake2_locl.h +++ b/crypto/include/internal/blake2_locl.h @@ -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 */ |