Skip to content
GitLab
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
8aeecc15
Commit
8aeecc15
authored
Nov 16, 2002
by
Niels Möller
Browse files
(macro GET): Check sign of parsed
numbers. Rev: src/nettle/sexp2dsa.c:1.2 Rev: src/nettle/sexp2rsa.c:1.9
parent
093e19c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
sexp2dsa.c
View file @
8aeecc15
...
...
@@ -35,8 +35,12 @@
#include
<string.h>
#define GET(x, l, v) \
do { if (!nettle_mpz_set_sexp((x), (l), (v))) return 0; } while(0)
#define GET(x, l, v) \
do { \
if (!nettle_mpz_set_sexp((x), (l), (v)) \
|| mpz_sgn(x) <= 0) \
return 0; \
} while(0)
/* Iterator should point past the algorithm tag, e.g.
*
...
...
sexp2rsa.c
View file @
8aeecc15
...
...
@@ -35,8 +35,12 @@
#include
<string.h>
#define GET(x, l, v) \
do { if (!nettle_mpz_set_sexp((x), (l), (v))) return 0; } while(0)
#define GET(x, l, v) \
do { \
if (!nettle_mpz_set_sexp((x), (l), (v)) \
|| mpz_sgn(x) <= 0) \
return 0; \
} while(0)
/* Iterator should point past the algorithm tag, e.g.
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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