Skip to content

Commit

Permalink
fixing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Sep 3, 2024
1 parent 1129ab7 commit 9a5d015
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
7 changes: 3 additions & 4 deletions examples/ecdh.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@ int main(void) {
assert(return_val);

/*** Key Generation ***/

/* If the secret key is zero or out of range (bigger than secp256k1's
* order), we return 1. Note that the probability of this
* happening is negligible, though it could indicate a faulty RNG */
/* If the secret key is zero or out of range (greater than secp256k1's
* order), we return 1. Note that the probability of this occurring
* is negligible with a properly functioning random number generator. */
if (!fill_random(seckey1, sizeof(seckey1)) || !fill_random(seckey2, sizeof(seckey2))) {
printf("Failed to generate randomness\n");
return 1;
Expand Down
7 changes: 3 additions & 4 deletions examples/ecdsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ int main(void) {
assert(return_val);

/*** Key Generation ***/

/* If the secret key is zero or out of range (bigger than secp256k1's
* order), we return 1. Note that the probability of this
* happening is negligible, though it could indicate a faulty RNG */
/* If the secret key is zero or out of range (greater than secp256k1's
* order), we return 1. Note that the probability of this occurring
* is negligible with a properly functioning random number generator. */
if (!fill_random(seckey, sizeof(seckey))) {
printf("Failed to generate randomness\n");
return 1;
Expand Down
6 changes: 3 additions & 3 deletions examples/ellswift.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ int main(void) {

/*** Generate secret keys ***/

/* If the secret key is zero or out of range (bigger than secp256k1's
* order), we return 1. Note that the probability of this
* happening is negligible, though it could indicate a faulty RNG */
/* If the secret key is zero or out of range (greater than secp256k1's
* order), we return 1. Note that the probability of this occurring
* is negligible with a properly functioning random number generator. */
if (!fill_random(seckey1, sizeof(seckey1)) || !fill_random(seckey2, sizeof(seckey2))) {
printf("Failed to generate randomness\n");
return 1;
Expand Down
7 changes: 3 additions & 4 deletions examples/schnorr.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ int main(void) {
assert(return_val);

/*** Key Generation ***/

/* If the secret key is zero or out of range (bigger than secp256k1's
* order), we return 1. Note that the probability of this
* happening is negligible, though it could indicate a faulty RNG */
/* If the secret key is zero or out of range (greater than secp256k1's
* order), we return 1. Note that the probability of this occurring
* is negligible with a properly functioning random number generator. */
if (!fill_random(seckey, sizeof(seckey))) {
printf("Failed to generate randomness\n");
return 1;
Expand Down

0 comments on commit 9a5d015

Please sign in to comment.