changeset 5:9d449e899402

Fixed keypair code
author ivo <ivo@UFO-Net.nl>
date Sat, 09 Oct 2010 01:28:25 +0200
parents a989ecbd5f53
children cf9b44b46be5
files src/keypair.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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
+}