Skip to content

Commit

Permalink
added modified crypt tool
Browse files Browse the repository at this point in the history
  • Loading branch information
schneider42 committed Aug 6, 2011
1 parent 456ec10 commit a06b1ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/crypto/generate-keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ void ECIES_generate_key_pair(void) /* generate a public/private key pair */
//printf("Here is your new public/private key pair:\n");
bitstr_to_hex(buf, x);
//printf("Public key: %s:", bufptr);
FILE* f = fopen("pubx.key", "w");
FILE* f = fopen("files/pubx.key", "w");
if( f == NULL ){
printf("error opening pubx.key\n");
while(1);
Expand All @@ -402,7 +402,7 @@ void ECIES_generate_key_pair(void) /* generate a public/private key pair */

bitstr_to_hex(buf, y);
//printf("%s\n", bufptr);
f = fopen("puby.key", "w");
f = fopen("files/puby.key", "w");
if( f == NULL ){
printf("error opening puby.key\n");
while(1);
Expand All @@ -413,7 +413,7 @@ void ECIES_generate_key_pair(void) /* generate a public/private key pair */

bitstr_to_hex(buf, k);
//printf("Private key: %s\n", bufptr);
f = fopen("priv.key", "w");
f = fopen("files/priv.key", "w");
if( f == NULL ){
printf("error opening priv.key\n");
while(1);
Expand Down

0 comments on commit a06b1ea

Please sign in to comment.