Mercurial > hg > quicktun
diff src/keypair.c @ 5:9d449e899402
Fixed keypair code
author | ivo <ivo@UFO-Net.nl> |
---|---|
date | Sat, 09 Oct 2010 01:28:25 +0200 |
parents | 65c01f57bdce |
children | 6d86596d8884 |
line wrap: on
line diff
--- a/src/keypair.c Fri Oct 08 18:18:05 2010 +0200 +++ b/src/keypair.c Sat Oct 09 01:28:25 2010 +0200 @@ -41,7 +41,7 @@ printf("\n"); printf("PUBLIC: "); - for (i = 0; i < crypto_box_SECRETKEYBYTES; i++) printf("%02x", csecretkey[i]); + for (i = 0; i < crypto_box_PUBLICKEYBYTES; i++) printf("%02x", cpublickey[i]); printf("\n"); return 0; @@ -51,4 +51,4 @@ char* b; srand(time(NULL)); for (b = bytes; b < bytes + crypto_box_SECRETKEYBYTES; b++) *b = rand() % 255; -} \ No newline at end of file +}