Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nettle
nettle
Commits
d85e39b5
Commit
d85e39b5
authored
Oct 10, 2018
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move block buffer last in hash context structs.
parent
3185ed4d
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
8 deletions
+19
-8
ChangeLog
ChangeLog
+11
-0
gosthash94.h
gosthash94.h
+1
-1
md2.h
md2.h
+1
-1
md4.h
md4.h
+1
-1
md5.h
md5.h
+1
-1
ripemd160.h
ripemd160.h
+1
-1
sha1.h
sha1.h
+1
-1
sha2.h
sha2.h
+2
-2
No files found.
ChangeLog
View file @
d85e39b5
2019-02-06 Niels Möller <nisse@lysator.liu.se>
* gosthash94.h (struct gosthash94_ctx): Move block buffer last in
struct.
* md2.h (struct md2_ctx): Likewise.
* md4.h (struct md4_ctx): Likewise.
* md5.h (struct md5_ctx): Likewise.
* ripemd160.h (struct ripemd160_ctx): Likewise.
* sha1.h (struct sha1_ctx): Likewise.
* sha2.h (struct sha256_ctx, struct sha512_ctx): Likewise.
2019-01-19 Niels Möller <nisse@lysator.liu.se>
* examples/Makefile.in (TARGETS): Delete eratosthenes, left over
...
...
gosthash94.h
View file @
d85e39b5
...
...
@@ -81,8 +81,8 @@ struct gosthash94_ctx
{
uint32_t
hash
[
8
];
/* algorithm 256-bit state */
uint32_t
sum
[
8
];
/* sum of processed message blocks */
uint8_t
message
[
GOSTHASH94_BLOCK_SIZE
];
/* 256-bit buffer for leftovers */
uint64_t
length
;
/* number of processed bytes */
uint8_t
message
[
GOSTHASH94_BLOCK_SIZE
];
/* 256-bit buffer for leftovers */
};
void
gosthash94_init
(
struct
gosthash94_ctx
*
ctx
);
...
...
md2.h
View file @
d85e39b5
...
...
@@ -54,8 +54,8 @@ struct md2_ctx
{
uint8_t
C
[
MD2_BLOCK_SIZE
];
uint8_t
X
[
3
*
MD2_BLOCK_SIZE
];
uint8_t
block
[
MD2_BLOCK_SIZE
];
/* Block buffer */
unsigned
index
;
/* Into buffer */
uint8_t
block
[
MD2_BLOCK_SIZE
];
/* Block buffer */
};
void
...
...
md4.h
View file @
d85e39b5
...
...
@@ -58,8 +58,8 @@ struct md4_ctx
{
uint32_t
state
[
_MD4_DIGEST_LENGTH
];
uint64_t
count
;
/* Block count */
uint8_t
block
[
MD4_BLOCK_SIZE
];
/* Block buffer */
unsigned
index
;
/* Into buffer */
uint8_t
block
[
MD4_BLOCK_SIZE
];
/* Block buffer */
};
void
...
...
md5.h
View file @
d85e39b5
...
...
@@ -57,8 +57,8 @@ struct md5_ctx
{
uint32_t
state
[
_MD5_DIGEST_LENGTH
];
uint64_t
count
;
/* Block count */
uint8_t
block
[
MD5_BLOCK_SIZE
];
/* Block buffer */
unsigned
index
;
/* Into buffer */
uint8_t
block
[
MD5_BLOCK_SIZE
];
/* Block buffer */
};
void
...
...
ripemd160.h
View file @
d85e39b5
...
...
@@ -59,8 +59,8 @@ struct ripemd160_ctx
{
uint32_t
state
[
_RIPEMD160_DIGEST_LENGTH
];
uint64_t
count
;
/* 64-bit block count */
uint8_t
block
[
RIPEMD160_BLOCK_SIZE
];
unsigned
int
index
;
uint8_t
block
[
RIPEMD160_BLOCK_SIZE
];
};
void
...
...
sha1.h
View file @
d85e39b5
...
...
@@ -59,8 +59,8 @@ struct sha1_ctx
{
uint32_t
state
[
_SHA1_DIGEST_LENGTH
];
/* State variables */
uint64_t
count
;
/* 64-bit block count */
uint8_t
block
[
SHA1_BLOCK_SIZE
];
/* SHA1 data buffer */
unsigned
int
index
;
/* index into buffer */
uint8_t
block
[
SHA1_BLOCK_SIZE
];
/* SHA1 data buffer */
};
void
...
...
sha2.h
View file @
d85e39b5
...
...
@@ -74,8 +74,8 @@ struct sha256_ctx
{
uint32_t
state
[
_SHA256_DIGEST_LENGTH
];
/* State variables */
uint64_t
count
;
/* 64-bit block count */
uint8_t
block
[
SHA256_BLOCK_SIZE
];
/* SHA256 data buffer */
unsigned
int
index
;
/* index into buffer */
uint8_t
block
[
SHA256_BLOCK_SIZE
];
/* SHA256 data buffer */
};
void
...
...
@@ -121,8 +121,8 @@ struct sha512_ctx
{
uint64_t
state
[
_SHA512_DIGEST_LENGTH
];
/* State variables */
uint64_t
count_low
,
count_high
;
/* 128-bit block count */
uint8_t
block
[
SHA512_BLOCK_SIZE
];
/* SHA512 data buffer */
unsigned
int
index
;
/* index into buffer */
uint8_t
block
[
SHA512_BLOCK_SIZE
];
/* SHA512 data buffer */
};
void
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment