Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Brian Smith
nettle
Commits
978fcedc
Commit
978fcedc
authored
Mar 11, 2003
by
Niels Möller
Browse files
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
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
Supports
Markdown
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