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
4539091a
Commit
4539091a
authored
Jan 13, 2019
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eccdata: More asserts in ecc_pippenger_precompute.
parent
7e00a2d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
eccdata.c
eccdata.c
+5
-1
No files found.
eccdata.c
View file @
4539091a
...
...
@@ -674,12 +674,16 @@ ecc_pippenger_precompute (struct ecc_curve *ecc, unsigned k, unsigned c)
for
(
j
=
2
;
j
<
(
1U
<<
c
);
j
<<=
1
)
{
/* T[j] = 2^k T[j/2] */
assert
(
j
<
ecc
->
table_size
);
ecc_dup
(
ecc
,
&
ecc
->
table
[
j
],
&
ecc
->
table
[
j
/
2
]);
for
(
i
=
1
;
i
<
k
;
i
++
)
ecc_dup
(
ecc
,
&
ecc
->
table
[
j
],
&
ecc
->
table
[
j
]);
for
(
i
=
1
;
i
<
j
;
i
++
)
ecc_add
(
ecc
,
&
ecc
->
table
[
j
+
i
],
&
ecc
->
table
[
j
],
&
ecc
->
table
[
i
]);
{
assert
(
j
+
i
<
ecc
->
table_size
);
ecc_add
(
ecc
,
&
ecc
->
table
[
j
+
i
],
&
ecc
->
table
[
j
],
&
ecc
->
table
[
i
]);
}
}
for
(
j
=
1
<<
c
;
j
<
ecc
->
table_size
;
j
++
)
{
...
...
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