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
ffa61303
Commit
ffa61303
authored
Sep 19, 2003
by
Niels Möller
Browse files
(main): Check return value from
simple_random. Rev: src/nettle/examples/rsa-keygen.c:1.11
parent
980c7cd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/rsa-keygen.c
View file @
ffa61303
...
...
@@ -42,7 +42,7 @@
#include
"io.h"
#define KEYSIZE
5
00
#define KEYSIZE
9
00
#define ESIZE 30
static
void
...
...
@@ -110,7 +110,11 @@ main(int argc, char **argv)
yarrow256_init
(
&
yarrow
,
0
,
NULL
);
/* Read some data to seed the generator */
simple_random
(
&
yarrow
,
random_name
);
if
(
!
simple_random
(
&
yarrow
,
random_name
))
{
werror
(
"Initialization of randomness generator failed.
\n
"
);
return
EXIT_FAILURE
;
}
rsa_public_key_init
(
&
pub
);
rsa_private_key_init
(
&
priv
);
...
...
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