Commit c45d91a1 authored by Pieter Hintjens's avatar Pieter Hintjens

Fixed comments on curve_keygen tool

parent 635a03d2
...@@ -3,15 +3,12 @@ ...@@ -3,15 +3,12 @@
This file is part of 0MQ. This file is part of 0MQ.
This tool generates a keypair for the libzmq CURVE security mechanism, This tool generates a CurveZMQ keypair, as two printable strings you can
and encodes the keypair to give two printable strings that you can use use in configuration files or source code. The encoding uses Z85, which
in configuration files or source code. The encoding uses Z85, which is is a base-85 format that is described in 0MQ RFC 32, and which has an
a base-85 format that is described in 0MQ RFC 32, and which has an implementation in the z85_codec.h source used by this tool. The keypair
implementation in the Z85.c source used by this tool. The keypair
always works with the secret key held by one party and the public key always works with the secret key held by one party and the public key
distributed (securely!) to peers wishing to connect to it. CURVE is distributed (securely!) to peers wishing to connect to it.
defined by http://rfc.zeromq.org/spec:25. Z85 is defined by
http://rfc.zeromq.org/spec:32.
0MQ is free software; you can redistribute it and/or modify it under 0MQ is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License as published by
...@@ -40,15 +37,12 @@ int main (void) ...@@ -40,15 +37,12 @@ int main (void)
# error "libsodium not built correctly" # error "libsodium not built correctly"
# endif # endif
puts ("This tool generates a keypair for the libzmq CURVE security mechanism,"); puts ("This tool generates a CurveZMQ keypair, as two printable strings you can");
puts ("and encodes the keypair to give two printable strings that you can use"); puts ("use in configuration files or source code. The encoding uses Z85, which");
puts ("in configuration files or source code. The encoding uses Z85, which is"); puts ("is a base-85 format that is described in 0MQ RFC 32, and which has an");
puts ("a base-85 format that is described in 0MQ RFC 32, and which has an"); puts ("implementation in the z85_codec.h source used by this tool. The keypair");
puts ("implementation in the Z85.c source used by this tool. The keypair");
puts ("always works with the secret key held by one party and the public key"); puts ("always works with the secret key held by one party and the public key");
puts ("distributed (securely!) to peers wishing to connect to it. CURVE is"); puts ("distributed (securely!) to peers wishing to connect to it.");
puts ("defined by http://rfc.zeromq.org/spec:25. Z85 is defined by");
puts ("http://rfc.zeromq.org/spec:32.");
uint8_t public_key [32]; uint8_t public_key [32];
uint8_t secret_key [32]; uint8_t secret_key [32];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment