Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sgxwallet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
sgxwallet
Commits
94fdac5f
Unverified
Commit
94fdac5f
authored
May 26, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-1880-fix-warnings
parent
94ce3566
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Point.c
secure_enclave/Point.c
+3
-3
Signature.c
secure_enclave/Signature.c
+2
-2
No files found.
secure_enclave/Point.c
View file @
94fdac5f
...
...
@@ -57,7 +57,7 @@ void point_at_infinity(point p)
/*Print point to standart output stream*/
void
point_print
(
point
p
)
{
/
* /
/Write something if point is a infinity
//Write something if point is a infinity
if
(
p
->
infinity
)
{
printf
(
"Point is at infinity!"
);
...
...
@@ -67,7 +67,7 @@ void point_print(point p)
printf
(
"
\n
,
\n\t
"
);
//mpz_out_str(stdout, 10, p->y);
printf
(
"
\n
)
\n
"
);
}
*/
}
}
/*Set a point from another point*/
...
...
@@ -292,7 +292,7 @@ Loops through the integer bit per bit, if a bit is 1 then x is added to the resu
This is not the most effecient method of point multiplication, but it's faster than P+P+P+... which is not computational feasiable.
*/
int
bits
=
mpz_sizeinbase
(
multiplier
,
2
);
unsigned
long
int
bit
=
0
;
long
int
bit
=
0
;
while
(
bit
<=
bits
)
{
if
(
mpz_tstbit
(
multiplier
,
bit
))
...
...
secure_enclave/Signature.c
View file @
94fdac5f
...
...
@@ -51,11 +51,11 @@ signature signature_init() {
/*Print signature to standart output stream*/
void
signature_print
(
signature
sig
)
{
/*
printf("\nSignature (r,s): \n\t(");
printf
(
"
\n
Signature (r,s):
\n\t
("
);
mpz_out_str
(
stdout
,
10
,
sig
->
r
);
printf
(
",
\n\t
"
);
mpz_out_str
(
stdout
,
10
,
sig
->
s
);
printf(")\n");
*/
printf
(
")
\n
"
);
}
/*Set signature from strings of a base from 2-62*/
...
...
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