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
ff5b7048
Unverified
Commit
ff5b7048
authored
Sep 10, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-3039
parent
70ab5718
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Signature.c
secure_enclave/Signature.c
+6
-6
No files found.
secure_enclave/Signature.c
View file @
ff5b7048
...
...
@@ -104,10 +104,9 @@ void signature_sign(signature sig, mpz_t message, mpz_t private_key, domain_para
return
;
}
point
Q
=
point_init
();
//Initializing variables
mpz_t
k
,
x
,
r
,
t1
,
t2
,
t3
,
t4
,
t5
,
s
,
n_div_2
,
rem
,
neg
,
seed
;
point
Q
=
point_init
();
mpz_t
k
,
x
,
r
,
t1
,
t2
,
t3
,
t4
,
t5
,
s
,
n_div_2
,
rem
,
neg
,
seed
,
s_mul_2
;
mpz_init
(
k
);
mpz_init
(
x
);
mpz_init
(
r
);
...
...
@@ -121,7 +120,6 @@ void signature_sign(signature sig, mpz_t message, mpz_t private_key, domain_para
mpz_init
(
rem
);
mpz_init
(
neg
);
mpz_init
(
seed
);
mpz_t
s_mul_2
;
mpz_init
(
s_mul_2
);
SAFE_CHAR_BUF
(
rand_char
,
32
);
...
...
@@ -182,20 +180,22 @@ void signature_sign(signature sig, mpz_t message, mpz_t private_key, domain_para
point_clear
(
Q
);
mpz_clear
(
k
);
mpz_clear
(
r
);
mpz_clear
(
s
);
mpz_clear
(
r
);
mpz_clear
(
x
);
mpz_clear
(
rem
);
mpz_clear
(
neg
);
mpz_clear
(
t1
);
mpz_clear
(
t2
);
mpz_clear
(
t3
);
mpz_clear
(
t4
);
mpz_clear
(
t5
);
mpz_clear
(
seed
);
mpz_clear
(
n_div_2
);
mpz_clear
(
s_mul_2
);
}
#endif
...
...
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