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
Wim Lewis
nettle
Commits
1cc82bbb
Commit
1cc82bbb
authored
Dec 26, 2018
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eccdata: Check that table size is at least 2.
Intended to silence warning from the clang static analyzer.
parent
d7a2b703
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
ChangeLog
ChangeLog
+4
-0
eccdata.c
eccdata.c
+6
-0
No files found.
ChangeLog
View file @
1cc82bbb
2018-12-26 Niels Möller <nisse@lysator.liu.se>
* eccdata.c (ecc_pippenger_precompute): Check that table size is
at least 2. Intended to silence warning from the clang static
analyzer.
* configure.ac: Bump package version to 3.5.
(LIBNETTLE_MAJOR): Bump major number, now 7.
(LIBHOGWEED_MAJOR): Bump major number, now 5.
...
...
eccdata.c
View file @
1cc82bbb
...
...
@@ -650,6 +650,12 @@ ecc_pippenger_precompute (struct ecc_curve *ecc, unsigned k, unsigned c)
unsigned
M
=
ecc_table_size
(
ecc
->
bit_size
,
k
,
c
);
unsigned
i
,
j
;
if
(
M
<
2
)
{
fprintf
(
stderr
,
"Invalid parameters, implies M = %u
\n
"
,
M
);
exit
(
EXIT_FAILURE
);
}
if
(
M
==
ecc_table_size
(
ecc
->
bit_size
,
k
-
1
,
c
))
fprintf
(
stderr
,
"warn: Parameters k = %u, c = %d are suboptimal, could use smaller k
\n
"
,
...
...
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