Mercurial > hg > quicktun
comparison 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 |
comparison
equal
deleted
inserted
replaced
4:a989ecbd5f53 | 5:9d449e899402 |
---|---|
39 printf("SECRET: "); | 39 printf("SECRET: "); |
40 for (i = 0; i < crypto_box_SECRETKEYBYTES; i++) printf("%02x", csecretkey[i]); | 40 for (i = 0; i < crypto_box_SECRETKEYBYTES; i++) printf("%02x", csecretkey[i]); |
41 printf("\n"); | 41 printf("\n"); |
42 | 42 |
43 printf("PUBLIC: "); | 43 printf("PUBLIC: "); |
44 for (i = 0; i < crypto_box_SECRETKEYBYTES; i++) printf("%02x", csecretkey[i]); | 44 for (i = 0; i < crypto_box_PUBLICKEYBYTES; i++) printf("%02x", cpublickey[i]); |
45 printf("\n"); | 45 printf("\n"); |
46 | 46 |
47 return 0; | 47 return 0; |
48 } | 48 } |
49 | 49 |