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
Nettle
nettle
Commits
978fcedc
Commit
978fcedc
authored
Mar 11, 2003
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment fixes.
Rev: src/nettle/dsa-keygen.c:1.5 Rev: src/nettle/dsa-sign.c:1.6
parent
00df073c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
dsa-keygen.c
dsa-keygen.c
+1
-1
dsa-sign.c
dsa-sign.c
+1
-1
No files found.
dsa-keygen.c
View file @
978fcedc
...
...
@@ -72,7 +72,7 @@ dsa_nist_gen(mpz_t p, mpz_t q,
mpz_t
t
;
mpz_t
c
;
/* For NIS keysizes, we should have L = 512 + 6
5
* l */
/* For NIS keysizes, we should have L = 512 + 6
4
* l */
n
=
(
L
-
1
)
/
160
;
b
=
(
L
-
1
)
%
160
;
mpz_init
(
s
);
...
...
dsa-sign.c
View file @
978fcedc
...
...
@@ -68,7 +68,7 @@ dsa_sign_digest(const struct dsa_public_key *pub,
/* What do we do now? The key is invalid. */
abort
();
/* Compute signature s = k^-1(h + xr) (mod q) */
/* Compute signature s = k^-1
(h + xr) (mod q) */
mpz_mul
(
tmp
,
signature
->
r
,
key
->
x
);
mpz_fdiv_r
(
tmp
,
tmp
,
pub
->
q
);
mpz_add
(
tmp
,
tmp
,
h
);
...
...
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