Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nettle
nettle
Commits
1d0cbc32
Commit
1d0cbc32
authored
Nov 24, 2018
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ChangeLog entries, minor comment and spacing fixes
parent
4c5a4472
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
ChangeLog
ChangeLog
+11
-0
rsa-sign-tr.c
rsa-sign-tr.c
+2
-1
No files found.
ChangeLog
View file @
1d0cbc32
2018-11-08 Simo Sorce <simo@redhat.com>
* rsa-sign-tr.c (rsa_sec_compute_root_tr): New function that uses
_rsa_sec_compute_root, as well as side-channel silent RSA
blinding.
(rsa_compute_root_tr) Rewritten as a wrapper around
rsa_sec_compute_root_tr.
(rsa_sec_blind, rsa_sec_unblind, sec_equal, rsa_sec_check_root)
(cnd_mpn_zero): New helper functions.
(rsa_sec_compute_root_tr) [NETTLE_USE_MINI_GMP]: Defined as a not
side-channel silent wrapper around rsa_compute_root_tr, and the
latter function left unchanged.
* rsa-sec-compute-root.c (_rsa_sec_compute_root_itch)
(_rsa_sec_compute_root): New file, new private functions.
Side-channel silent version of rsa_compute_root.
...
...
rsa-sign-tr.c
View file @
1d0cbc32
...
...
@@ -4,6 +4,7 @@
Copyright (C) 2001, 2015 Niels Möller
Copyright (C) 2012 Nikos Mavrogiannopoulos
Copyright (C) 2018 Red Hat Inc.
This file is part of GNU Nettle.
...
...
@@ -145,7 +146,7 @@ rsa_sec_compute_root_tr(const struct rsa_public_key *pub,
res
=
rsa_compute_root_tr
(
pub
,
key
,
random_ctx
,
random
,
xz
,
mz
);
if
(
res
)
mpz_limbs_copy
(
x
,
xz
,
mpz_size
(
pub
->
n
));
mpz_limbs_copy
(
x
,
xz
,
mpz_size
(
pub
->
n
));
mpz_clear
(
mz
);
mpz_clear
(
xz
);
...
...
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