Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Nettle
nettle
Commits
e76c8b47
Commit
e76c8b47
authored
Apr 06, 2013
by
Edgar E. Iglesias
Committed by
Niels Möller
Apr 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix condition for when the block buffer is full.
parent
2dfae9f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
ChangeLog
ChangeLog
+6
-0
sha3.c
sha3.c
+1
-1
No files found.
ChangeLog
View file @
e76c8b47
2013-04-06 Niels Möller <nisse@lysator.liu.se>
From Edgar E. Iglesias:
* sha3.c (_sha3_update): Fix condition for when the block buffer
is full.
2013-04-04 Niels Möller <nisse@lysator.liu.se>
* ecc-point.c (ecc_point_get): Allow NULL x or y, ignore
...
...
sha3.c
View file @
e76c8b47
...
...
@@ -61,7 +61,7 @@ _sha3_update (struct sha3_state *state,
if
(
pos
>
0
)
{
unsigned
left
=
block_size
-
pos
;
if
(
length
<
pos
)
if
(
length
<
left
)
{
memcpy
(
block
+
pos
,
data
,
length
);
return
pos
+
length
;
...
...
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