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
44ae2850
Commit
44ae2850
authored
Jan 08, 2004
by
Niels Möller
Browse files
(dsa_nist_gen): Fixed declaration/statement order.
Rev: src/nettle/ChangeLog:1.218 Rev: src/nettle/dsa-keygen.c:1.8
parent
d17d340f
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
44ae2850
2004-01-08 Niels Mller <niels@s3.kth.se>
* dsa-keygen.c (dsa_nist_gen): Fixed declaration/statement order.
* rsa-keygen.c (bignum_next_prime): Fixed off-by-one error when
comparing input to the largest listed prime. General cleanup, as
prime_limit > 0 always. Use TMP_DECL and TMP_ALLOC.
...
...
dsa-keygen.c
View file @
44ae2850
...
...
@@ -122,8 +122,9 @@ dsa_nist_gen(mpz_t p, mpz_t q,
/* Official maximum key size: L = 1024 => n = 6 */
TMP_DECL
(
buffer
,
uint8_t
,
(
6
+
1
)
*
SHA1_DIGEST_SIZE
);
unsigned
size
=
(
n
+
1
)
*
SHA1_DIGEST_SIZE
;
TMP_ALLOC
(
buffer
,
size
);
unsigned
i
,
j
;
TMP_ALLOC
(
buffer
,
size
);
for
(
i
=
0
,
j
=
2
;
i
<
4096
;
i
++
,
j
+=
n
+
1
)
{
...
...
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