# HG changeset patch # User ivo # Date 1286580505 -7200 # Node ID 9d449e899402c9f11f4e0eed01ded5e5fade1206 # Parent a989ecbd5f532d0bacaa786ea9f471b17d0d6ba0 Fixed keypair code diff -r a989ecbd5f53 -r 9d449e899402 src/keypair.c --- 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 +}