docs and changed to void functions

This commit is contained in:
Orson Peters 2013-01-22 11:32:57 +01:00
parent 440f4a06a4
commit f89f5ae94c
1 changed files with 5 additions and 1 deletions

View File

@ -65,7 +65,11 @@ Example
const unsigned char message[] = "TEST MESSAGE";
/* create a random seed, and a keypair out of that seed */
ed25519_create_seed(seed);
if (ed25519_create_seed(seed)) {
printf("error while generating seed\n");
exit(1);
}
ed25519_create_keypair(verify_key, sign_key, seed);
/* create signature on the message with the sign key */